Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Closed Thread
 
Thread Tools Search this Thread
Old 06-18-2010, 01:40 PM   #376
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by chaley View Post
If you haven't done it, you should run Preferences -> Advanced -> Check database integrity. That will clean missing formats out of the db. It won't add extra books in, though.
If there is a record in the db (id#) and no corresponding folder in the library, do you know if it removes that record? What happens if you have an "empty" record - added with the Add books function, which allows empty records? Does it remove that record? (I'm not sure if those cases differ.) I've tried to run the integrity check, but it's always failed. I know there was a bug, later fixed, so that may be the cause.
Starson17 is offline  
Old 06-18-2010, 01:53 PM   #377
crangirl
Connoisseur
crangirl doesn't littercrangirl doesn't litter
 
Posts: 52
Karma: 128
Join Date: May 2010
Device: Pocketbook 360
I'm trying to check the database integrity... but it stays at '0 %'..
crangirl is offline  
Advert
Old 06-18-2010, 02:02 PM   #378
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by Starson17 View Post
If there is a record in the db (id#) and no corresponding folder in the library, do you know if it removes that record? What happens if you have an "empty" record - added with the Add books function, which allows empty records? Does it remove that record? (I'm not sure if those cases differ.)
From looking at the code (and not taking a lot of time to understand it), it appears that the integrity checker never removes records. It also seems to never remove or create folders. It does remove references in a book to format files that no longer exist.

@crangirl: did it ever finish, or at least say something? The process can take a long time on a big library.
chaley is offline  
Old 06-18-2010, 03:00 PM   #379
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: 45,377
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
The integrity checker does two things:

1) Dump and reload the SQL to fix any small errors in it and automatically optimize the database
2) Go over every book, check if every format listed in the books actually has a corresponding file, if not, remove the reference to that format.
kovidgoyal is offline  
Old 06-19-2010, 06:02 AM   #380
crangirl
Connoisseur
crangirl doesn't littercrangirl doesn't litter
 
Posts: 52
Karma: 128
Join Date: May 2010
Device: Pocketbook 360
Quote:
Originally Posted by crangirl View Post
I'm trying to check the database integrity... but it stays at '0 %'..
Thanks for the info.

I'll try it again.
crangirl is offline  
Advert
Old 06-19-2010, 06:44 AM   #381
crangirl
Connoisseur
crangirl doesn't littercrangirl doesn't litter
 
Posts: 52
Karma: 128
Join Date: May 2010
Device: Pocketbook 360
Ah, checking the database worked (had to wait longer). Then I searched for format:false and now it did show more books/entries.
crangirl is offline  
Old 06-26-2010, 03:11 PM   #382
DrFaust
Junior Member
DrFaust began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jun 2010
Device: Iphone
Batch ebook-meta

Is it possible to batch edit a lot of ebook with "ebook-meta" command?

I have 500 ".epub" books. Their languages is set to UND. I want to change them into "en". I can change one by one with ebook-meta command. but when I want to change all them I recive this error:
Code:
C:\Program Files\Calibre2>ebook-meta G:\Ebook\*.epub  -l en
Python function terminated unexpectedly
  (22, "invalid mode ('r+b') or filename") (Error Code: 1)
Traceback (most recent call last):
  File "site.py", line 103, in main
  File "site.py", line 85, in run_entry_point
  File "site-packages\calibre\ebooks\metadata\cli.py", line 156, in main
IOError: [Errno 22] invalid mode ('r+b') or filename: u'G:\\Ebook\\*.epub'
is there something wrong with the command that I used?
when I use it for only one Ebook, it does the job. Although I have to change the filename to something simple.

I have windows xp.
I can't use GUI (Calibre 0.7.5) to convert them all to epub again, because it takes so long and my cpu temp goes to 75 C.
DrFaust is offline  
Old 06-26-2010, 04:51 PM   #383
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by DrFaust View Post
is there something wrong with the command that I used?
It won't take the wildcard. Two options I can think of - use the FOR loop in a batch file (or script a loop), or use SED to change the UND to EN.
Starson17 is offline  
Old 06-26-2010, 07:18 PM   #384
EricLandes
Connoisseur
EricLandes can illuminate an eclipseEricLandes can illuminate an eclipseEricLandes can illuminate an eclipseEricLandes can illuminate an eclipseEricLandes can illuminate an eclipseEricLandes can illuminate an eclipseEricLandes can illuminate an eclipseEricLandes can illuminate an eclipseEricLandes can illuminate an eclipseEricLandes can illuminate an eclipseEricLandes can illuminate an eclipse
 
Posts: 95
Karma: 8282
Join Date: Jan 2010
Device: Kindle PW, Kobo Aura HD, Galaxy Note 10.1
Quote:
Originally Posted by Starson17 View Post
It won't take the wildcard. Two options I can think of - use the FOR loop in a batch file (or script a loop), or use SED to change the UND to EN.
You don't strictly need to do a batch file. The command typed at the command line would be:

for %f in (*.epub) do ebook-meta %f -l en

This will find all the .epub files in the current folder and run the command after the "do" on each one.
EricLandes is offline  
Old 06-26-2010, 07:22 PM   #385
DrFaust
Junior Member
DrFaust began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jun 2010
Device: Iphone
Quote:
Originally Posted by Starson17 View Post
It won't take the wildcard. Two options I can think of - use the FOR loop in a batch file (or script a loop), or use SED to change the UND to EN.
Thanks. I used a FOR loop and it worked.
for anyone who may have the same problem here is the code:
Code:
for %X in ("G:\Ebook\*.*") do ( ebook-meta "%X"  -l en
DrFaust is offline  
Old 06-26-2010, 07:26 PM   #386
DrFaust
Junior Member
DrFaust began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jun 2010
Device: Iphone
Quote:
Originally Posted by EricLandes View Post
You don't strictly need to do a batch file. The command typed at the command line would be:

for %f in (*.epub) do ebook-meta %f -l en

This will find all the .epub files in the current folder and run the command after the "do" on each one.
Thank you.
I wish you were here sooner. It took me 2 hours of googling to learn how to use FOR.
DrFaust is offline  
Old 07-11-2010, 11:50 PM   #387
rstickley
Junior Member
rstickley began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Jul 2010
Device: nook
While you're doing fun DOS tricks - I created a batch file of one line:

"c:\Program files\Calibre2\ebook-convert.exe" %1 %1.pdf

Now I can right click on a file and have it converted to PDF. At least the name doesn't get mangled (maybe the GUI can be told not to change the name??) and the right click is way faster than dragging/ converting / open folder / dragging back / deleting to my directory.

Of course, a right click to convert *could* be a handy feature to add...just saying...
rstickley is offline  
Old 07-30-2010, 09:17 AM   #388
ilya
Junior Member
ilya began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jul 2010
Device: Sony PRS 505
Google Reader fetching - skipping tags

Hello Kovid! First of all thank you so much for Calibre! That is an incredible tool indeed :-)

And here comes a question (i ve searched through the forum, guess there was no info).
Is there a way to skip some tags (proccessing the others of course), while fetching Google Reader entries with Calibre?

ps: I ve found a bug ticket (Ticket #1783), where you wrote that the tags would not be proccessed with non-ASCII characters in their names. I guess something has been changed since than, unfortunately (hehe) the non-ASCII tags (Cyrrilic in my case) are currently proccessed just great :-)
ilya is offline  
Old 07-30-2010, 10:53 AM   #389
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: 45,377
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You'd have to modify the recipe code to do it. Try asking in the custom recipes thread, the people who wrote the recipe can usually be found there.
kovidgoyal is offline  
Old 07-30-2010, 08:46 PM   #390
WT Sharpe
Bah, humbug!
WT Sharpe ought to be getting tired of karma fortunes by now.WT Sharpe ought to be getting tired of karma fortunes by now.WT Sharpe ought to be getting tired of karma fortunes by now.WT Sharpe ought to be getting tired of karma fortunes by now.WT Sharpe ought to be getting tired of karma fortunes by now.WT Sharpe ought to be getting tired of karma fortunes by now.WT Sharpe ought to be getting tired of karma fortunes by now.WT Sharpe ought to be getting tired of karma fortunes by now.WT Sharpe ought to be getting tired of karma fortunes by now.WT Sharpe ought to be getting tired of karma fortunes by now.WT Sharpe ought to be getting tired of karma fortunes by now.
 
WT Sharpe's Avatar
 
Posts: 39,072
Karma: 157049943
Join Date: Jun 2009
Location: Chesapeake, VA, USA
Device: Kindle Oasis, iPad Pro, & a Samsung Galaxy S9.
Another word of thanks as well, Kovid! I've given up on that crappy computer software that came with my Sony PSR-600, and am now using calibre exclusively to manage my Sony Touch library.
WT Sharpe is offline  
Closed Thread


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Frequently Asked Questions (and answers too!) Stinger Kobo Reader 112 05-12-2017 11:40 AM
PRS-300 Reader freezing frequently paddy77 Sony Reader 15 01-17-2011 02:33 AM
PRS-600 Do you frequently read PDFs on your PRS600? drmaxx Sony Reader 20 09-22-2009 07:15 PM
Questions we wish we had asked before buying a Reader Dr. Drib Sony Reader 15 05-22-2009 06:13 AM
Three not asked earlier questions about iLiad Malder1 iRex 9 08-14-2006 02:10 PM


All times are GMT -4. The time now is 02:36 PM.


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