Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 06-29-2019, 10:11 AM   #1
optoabhi
Member
optoabhi began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Jun 2017
Device: kindle paperwhite
Exclamation Import books of only certain formats from folders/sub-folders ?



I have a huge collection of various books in various formats such as pdf, epub, mobi, opf, etc. While I import them to Calibre I would like only epub and mobi to be imported. How could I do that ?
optoabhi is offline   Reply With Quote
Old 06-29-2019, 05:43 PM   #2
BetterRed
null operator
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 15,740
Karma: 18417806
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Try this:

Click image for larger version

Name:	Annotation 2019-06-30 073719.jpg
Views:	83
Size:	178.5 KB
ID:	172181

BR
BetterRed is online now   Reply With Quote
Old 06-29-2019, 08:15 PM   #3
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 6,939
Karma: 32271937
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Forma, Clara HD, Nexus 7 HD, iPad Pro, Tolino epos
@BetterRed: Would that not require him to add ignore rules for every ebook format that he would not want to add before the default add known ebook formats rule was hit? I had fun trying to create a rule that would match any filetype for the ignore though that may be due to not making enough use of calibre's regex.
DNSB is offline   Reply With Quote
Old 06-29-2019, 08:55 PM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 36,246
Karma: 16098999
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Import them all, select all books with ctrl+a and then use right click the remove books button and delete unwantd formats
kovidgoyal is online now   Reply With Quote
Old 06-29-2019, 10:48 PM   #5
BetterRed
null operator
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 15,740
Karma: 18417806
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by DNSB View Post
@BetterRed: Would that not require him to add ignore rules for every ebook format that he would not want to add before the default add known ebook formats rule was hit? I had fun trying to create a rule that would match any filetype for the ignore though that may be due to not making enough use of calibre's regex.
Not sure, I've never used the feature

FTR : I would just do a Windows search for e.g. type:epub at the top of the tree where I have the files, select them all, and copy-or-move them to the another folder - perhaps the autoadd folder. Then repeat for type.mobi

BR
BetterRed is online now   Reply With Quote
Old 06-30-2019, 02:23 AM   #6
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 6,939
Karma: 32271937
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Forma, Clara HD, Nexus 7 HD, iPad Pro, Tolino epos
Quote:
Originally Posted by BetterRed View Post

Quote:
Originally Posted by DNSB View Post
@BetterRed: Would that not require him to add ignore rules for every ebook format that he would not want to add before the default add known ebook formats rule was hit? I had fun trying to create a rule that would match any filetype for the ignore though that may be due to not making enough use of calibre's regex.
Not sure, I've never used the feature
Neither have I but the description reminded me of my favourite firewall rule that should go at the bottom of the evaluation list: Deny All. That has bitten me once or twice when I'd forgetten it's existence and added a rule after it.


Quote:
Originally Posted by BetterRed View Post
FTR : I would just do a Windows search for e.g. type:epub at the top of the tree where I have the files, select them all, and copy-or-move them to the another folder - perhaps the autoadd folder. Then repeat for type.mobi
Pretty much my choice as well.
DNSB is offline   Reply With Quote
Old 06-30-2019, 04:05 AM   #7
Zetmolm
Fanatic
Zetmolm ought to be getting tired of karma fortunes by now.Zetmolm ought to be getting tired of karma fortunes by now.Zetmolm ought to be getting tired of karma fortunes by now.Zetmolm ought to be getting tired of karma fortunes by now.Zetmolm ought to be getting tired of karma fortunes by now.Zetmolm ought to be getting tired of karma fortunes by now.Zetmolm ought to be getting tired of karma fortunes by now.Zetmolm ought to be getting tired of karma fortunes by now.Zetmolm ought to be getting tired of karma fortunes by now.Zetmolm ought to be getting tired of karma fortunes by now.Zetmolm ought to be getting tired of karma fortunes by now.
 
Posts: 588
Karma: 2031728
Join Date: Jan 2010
Device: PocketBook Touch (622), PocketBook Touch Lux 2, Pocketbook Touch HD 3
Quote:
Originally Posted by BetterRed View Post
Not sure, I've never used the feature

FTR : I would just do a Windows search for e.g. type:epub at the top of the tree where I have the files, select them all, and copy-or-move them to the another folder - perhaps the autoadd folder. Then repeat for type.mobi

BR
Or even easier: do a Windows search for e.g. type:epub at the top of the tree where I have the files, select them all, and drag-and-drop into Calibre.
Zetmolm is offline   Reply With Quote
Old 06-30-2019, 11:01 AM   #8
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
PeterT's Avatar
 
Posts: 10,771
Karma: 61292701
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
You could also make a batch file to find files of a certain type and then use the calibre command line to add the matching files

Sent from my moto g(7) power using Tapatalk
PeterT is offline   Reply With Quote
Old 06-30-2019, 06:08 PM   #9
BetterRed
null operator
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 15,740
Karma: 18417806
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by Zetmolm View Post
Or even easier: do a Windows search for e.g. type:epub at the top of the tree where I have the files, select them all, and drag-and-drop into Calibre.
I have a shortcut to calibre.exe in my Send To folder, so I'd probably use that - that's how I normally add any book. I rarely use any of the Add Books actions - except Add Empty book.

BR

Last edited by BetterRed; 06-30-2019 at 06:23 PM.
BetterRed is online now   Reply With Quote
Old 07-04-2019, 11:22 PM   #10
optoabhi
Member
optoabhi began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Jun 2017
Device: kindle paperwhite
Quote:
Originally Posted by kovidgoyal View Post
Import them all, select all books with ctrl+a and then use right click the remove books button and delete unwantd formats
Click image for larger version

Name:	ybD6xXw.png
Views:	28
Size:	66.8 KB
ID:	172252

Well the imported books shows all formats (epub, mobi, opf, txt, etc.) but the Delete option only recognizes Epub or generic ebook formats, as you can see it clearly is ignoring the *.opf books.

Last edited by BetterRed; 07-05-2019 at 01:57 AM. Reason: fix image
optoabhi is offline   Reply With Quote
Old 07-04-2019, 11:23 PM   #11
optoabhi
Member
optoabhi began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Jun 2017
Device: kindle paperwhite
Quote:
Originally Posted by Zetmolm View Post
Or even easier: do a Windows search for e.g. type:epub at the top of the tree where I have the files, select them all, and drag-and-drop into Calibre.
I didnt know drag and drop with calibre! Thank you!
optoabhi is offline   Reply With Quote
Old 07-05-2019, 01:13 AM   #12
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 6,939
Karma: 32271937
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Forma, Clara HD, Nexus 7 HD, iPad Pro, Tolino epos
Quote:
Originally Posted by optoabhi View Post
Image removed to avoid attracting moderator attention.

Well the imported books shows all formats (epub, mobi, opf, txt, etc.) but the Delete option only recognizes Epub or generic ebook formats, as you can see it clearly is ignoring the *.opf books.
Umm.. opf is not an ebook format -- it is an Open Packaging Format file that stores information about an ebook such as title, creator, book id, etc.. As for the rest, I've attached a snip with various formats (thanks to Baen who still support older formats). It does show a .txt file correctly after it was imported. Sample metadata.opf file is in the spoiler tag.

Spoiler:
Code:
<?xml version='1.0' encoding='utf-8'?>
<package xmlns="http://www.idpf.org/2007/opf" unique-identifier="uuid_id" version="2.0">
    <metadata xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:opf="http://www.idpf.org/2007/opf">
        <dc:identifier opf:scheme="calibre" id="calibre_id">6722</dc:identifier>
        <dc:identifier opf:scheme="uuid" id="uuid_id">63ad4fc9-38e6-49ff-bd21-ffdeb6119b34</dc:identifier>
        <dc:title>Lorem Ipsum Test</dc:title>
        <dc:creator opf:file-as="Pseudonym, Ima" opf:role="aut">Ima Pseudonym</dc:creator>
        <dc:contributor opf:file-as="calibre" opf:role="bkp">calibre (3.44.0) [https://calibre-ebook.com]</dc:contributor>
        <dc:date>0101-01-01T00:00:00+00:00</dc:date>
        <dc:language>eng</dc:language>
        <meta content="{&quot;Ima Pseudonym&quot;: &quot;&quot;}" name="calibre:author_link_map"/>
        <meta content="2019-05-21T07:00:00+00:00" name="calibre:timestamp"/>
        <meta content="Lorem Ipsum Test" name="calibre:title_sort"/>
        <meta name="calibre:user_metadata:#mm_annotations" content="{&quot;name&quot;: &quot;Annotations&quot;, &quot;is_csp&quot;: false, &quot;column&quot;: &quot;value&quot;, &quot;kind&quot;: &quot;field&quot;, &quot;display&quot;: {}, &quot;search_terms&quot;: [&quot;#mm_annotations&quot;], &quot;is_multiple2&quot;: {}, &quot;category_sort&quot;: &quot;value&quot;, &quot;#extra#&quot;: null, &quot;colnum&quot;: 2, &quot;is_multiple&quot;: null, &quot;label&quot;: &quot;mm_annotations&quot;, &quot;link_column&quot;: &quot;value&quot;, &quot;datatype&quot;: &quot;comments&quot;, &quot;rec_index&quot;: 23, &quot;#value#&quot;: null, &quot;table&quot;: &quot;custom_column_2&quot;, &quot;is_category&quot;: false, &quot;is_custom&quot;: true, &quot;is_editable&quot;: true}"/>
        <meta name="calibre:user_metadata:#author_sort" content="{&quot;name&quot;: &quot;Author Sort&quot;, &quot;is_csp&quot;: false, &quot;column&quot;: &quot;value&quot;, &quot;kind&quot;: &quot;field&quot;, &quot;display&quot;: {&quot;description&quot;: &quot;&quot;, &quot;make_category&quot;: false, &quot;use_decorations&quot;: 0, &quot;contains_html&quot;: false, &quot;composite_sort&quot;: &quot;text&quot;, &quot;composite_template&quot;: &quot;{author_sort}&quot;}, &quot;search_terms&quot;: [&quot;#author_sort&quot;], &quot;is_multiple2&quot;: {}, &quot;category_sort&quot;: &quot;value&quot;, &quot;#extra#&quot;: null, &quot;colnum&quot;: 1, &quot;is_multiple&quot;: null, &quot;label&quot;: &quot;author_sort&quot;, &quot;link_column&quot;: &quot;value&quot;, &quot;datatype&quot;: &quot;composite&quot;, &quot;rec_index&quot;: 22, &quot;#value#&quot;: &quot;Pseudonym, Ima&quot;, &quot;table&quot;: &quot;custom_column_1&quot;, &quot;is_category&quot;: false, &quot;is_custom&quot;: true, &quot;is_editable&quot;: true}"/>
    </metadata>
    <guide>
        <reference href="cover.jpg" title="Cover" type="cover"/>
    </guide>
</package>
Attached Thumbnails
Click image for larger version

Name:	formats.png
Views:	29
Size:	34.5 KB
ID:	172251  
DNSB is offline   Reply With Quote
Reply

Tags
library management

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
can't import books since Kindle update 1.19.2 with folders jmp123 Library Management 1 01-30-2017 11:05 PM
Feature Request: Auto import books on collections from folders rfog Calibre 1 04-14-2014 04:40 AM
Library structure series folders vs author folders Eric41 Library Management 2 12-08-2011 01:30 AM
Import My Library many folders. VinceG Calibre 2 12-09-2010 08:35 AM
Folders! I've got folders! - A short review of the BeBook Mini Elsi BeBook 10 09-26-2009 02:47 AM


All times are GMT -4. The time now is 06:49 AM.


MobileRead.com is a privately owned, operated and funded community.