Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 09-03-2010, 04:54 PM   #16
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 pghaworth View Post
How does it decide which book to merge into which? Plus, with my different devices that have the same file name it would be really bad to merge those.
There's another thread going on about whether I should integrate the Merge function (which merges all metadata) into the Copy to Library function. Currently only the autosorting function is integrated. That means that you will lose metadata found only in the second format if it has metadata not found in the first format. The order they are sent over is by sort order in the source Library.

If you are intentionally keeping books with the same author and title separate, then you don't want to do this.
Starson17 is offline   Reply With Quote
Old 09-03-2010, 04:59 PM   #17
pghaworth
Fervent Pleasure Seeker
pghaworth ought to be getting tired of karma fortunes by now.pghaworth ought to be getting tired of karma fortunes by now.pghaworth ought to be getting tired of karma fortunes by now.pghaworth ought to be getting tired of karma fortunes by now.pghaworth ought to be getting tired of karma fortunes by now.pghaworth ought to be getting tired of karma fortunes by now.pghaworth ought to be getting tired of karma fortunes by now.pghaworth ought to be getting tired of karma fortunes by now.pghaworth ought to be getting tired of karma fortunes by now.pghaworth ought to be getting tired of karma fortunes by now.pghaworth ought to be getting tired of karma fortunes by now.
 
pghaworth's Avatar
 
Posts: 1,224
Karma: 712073
Join Date: Feb 2009
Location: The Windmills of My Mind
Device: Clara HD
Quote:
Originally Posted by Starson17 View Post
The order they are sent over is by sort order in the source Library.
So before, if I were to do this, if I sort by date, oldest first, would it merge the newer records into the older, or vice versa?
pghaworth is offline   Reply With Quote
Advert
Old 09-03-2010, 05:15 PM   #18
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 pghaworth View Post
So before, if I were to do this, if I sort by date, oldest first, would it merge the newer records into the older, or vice versa?
newer->older

Records are sent sequentially by sort order in the source library. With the option on, it checks the destination library before sending to see if formats in the record it's sending should go into an existing "matching" record.

You should be able to send some records with autosort on (thereby merging duplicates), then turn it off, send some more (thereby keeping duplicates) and have control by running searches selecting the records you send with it on versus off and changing sort order.
Starson17 is offline   Reply With Quote
Old 09-03-2010, 06:28 PM   #19
pghaworth
Fervent Pleasure Seeker
pghaworth ought to be getting tired of karma fortunes by now.pghaworth ought to be getting tired of karma fortunes by now.pghaworth ought to be getting tired of karma fortunes by now.pghaworth ought to be getting tired of karma fortunes by now.pghaworth ought to be getting tired of karma fortunes by now.pghaworth ought to be getting tired of karma fortunes by now.pghaworth ought to be getting tired of karma fortunes by now.pghaworth ought to be getting tired of karma fortunes by now.pghaworth ought to be getting tired of karma fortunes by now.pghaworth ought to be getting tired of karma fortunes by now.pghaworth ought to be getting tired of karma fortunes by now.
 
pghaworth's Avatar
 
Posts: 1,224
Karma: 712073
Join Date: Feb 2009
Location: The Windmills of My Mind
Device: Clara HD
So, since what I need is older->newer I should then sort newest to oldest by date, correct?

I can't thank you enough for all your help. I have a lot going on this week but can't wait to test this out in the next week or so.
pghaworth is offline   Reply With Quote
Old 09-03-2010, 06:45 PM   #20
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 pghaworth View Post
So, since what I need is older->newer I should then sort newest to oldest by date, correct?
Yes
Quote:
I can't thank you enough for all your help.
You're welcome.
Starson17 is offline   Reply With Quote
Advert
Old 09-12-2010, 03:00 AM   #21
brewjono
Zealot
brewjono ought to be getting tired of karma fortunes by now.brewjono ought to be getting tired of karma fortunes by now.brewjono ought to be getting tired of karma fortunes by now.brewjono ought to be getting tired of karma fortunes by now.brewjono ought to be getting tired of karma fortunes by now.brewjono ought to be getting tired of karma fortunes by now.brewjono ought to be getting tired of karma fortunes by now.brewjono ought to be getting tired of karma fortunes by now.brewjono ought to be getting tired of karma fortunes by now.brewjono ought to be getting tired of karma fortunes by now.brewjono ought to be getting tired of karma fortunes by now.
 
brewjono's Avatar
 
Posts: 106
Karma: 501816
Join Date: Jan 2010
Location: Australia
Device: K3, K4, KPW
Quote:
Originally Posted by Starson17 View Post
I find duplicate titles by opening up the metadata.db file in sqlitespy and using an sql query.

Alternatively, this will also do it:

Code:
calibre-debug -c "from calibre.library.database2 import LibraryDatabase2; db = LibraryDatabase2('/path/to/library/folder');dupes = db.conn.get('select title from books group by title having count(*) > 1;');print dupes;">dupes.txt
Copy that long line, change the path to point to your library folder and paste it into a command window (terminal window, dos box, whatever you call it) and it will produce a file in the current directory called dupes.txt with all your duplicate titles in it. It's a list of dupe titles in unicode format.
Thanks very much for this. It worked for me, but took a while to work out which part was the path.

For people a bit slow like me I've included my path to help.

calibre-debug -c "from calibre.library.database2 import LibraryDatabase2; db = LibraryDatabase2('c:/users/frank/documents/my ebooks/calibre');dupes = db.conn.get('select title from books group by title having count(*) > 1;');print dupes;">dupes.txt

Using Vista I went to the start menu, selected "Run". When that came up I typed in "cmd" and enter. That brought up a traditional DOS window.

I copied the text from above into word where I edited it with my path, then pasted it into the dos window.

It then ran and I did a search for "dupes.txt". It was in the C: root. Opened it and manually went through Calibre.

I have almost 10,000 books and found almost 100 legitimate dupes.

Brewjono.
brewjono is offline   Reply With Quote
Old 09-12-2010, 09:35 AM   #22
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 brewjono View Post
Thanks very much for this.
You're welcome. Thanks for posting your steps, they may help others who have the default library location.
Starson17 is offline   Reply With Quote
Old 09-13-2010, 07:32 PM   #23
PCreighton
Enthusiast
PCreighton began at the beginning.
 
PCreighton's Avatar
 
Posts: 27
Karma: 10
Join Date: Aug 2010
Location: Ontario Canada
Device: Kindle 2; Kindle WIFI 6";IPAD 2
Helped a lot

Hi thanks this helped a lot, quesiton any way it can show author as well I am finding duplicate books in dupe.txt however they really are different authors. Am I asking for to much.
PCreighton is offline   Reply With Quote
Old 09-13-2010, 08:19 PM   #24
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 PCreighton View Post
Hi thanks this helped a lot, quesiton any way it can show author as well I am finding duplicate books in dupe.txt however they really are different authors. Am I asking for to much.
Try this:
Code:
calibre-debug -c "from calibre.library.database2 import LibraryDatabase2; db = LibraryDatabase2('c:/users/frank/documents/my ebooks/calibre');dupes = db.conn.get('select title, author_sort from books group by title having count(*) > 1;');print dupes;">dupes.txt
Starson17 is offline   Reply With Quote
Old 09-17-2010, 04:27 PM   #25
PCreighton
Enthusiast
PCreighton began at the beginning.
 
PCreighton's Avatar
 
Posts: 27
Karma: 10
Join Date: Aug 2010
Location: Ontario Canada
Device: Kindle 2; Kindle WIFI 6";IPAD 2
thank you

that works great thank you
PCreighton is offline   Reply With Quote
Old 09-17-2010, 04:56 PM   #26
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 PCreighton View Post
that works great thank you
You're welcome. It probably should have been that way from the beginning, but it was getting awfully long and intimidating.
Starson17 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Show Duplicate Titles NoBiscuit Calibre 13 05-30-2011 03:20 AM
Duplicate series titles? hairybiker Calibre 2 03-17-2010 06:27 AM
PRS 300: Duplicate titles on reader (and growing!) 747sardine Sony Reader 4 02-19-2010 04:37 PM
PRS 300 and duplicate titles rypleigh Introduce Yourself 1 12-27-2009 03:16 PM
Duplicate titles on PRS700 with SD card herbdb Sony Reader 5 01-26-2009 09:40 AM


All times are GMT -4. The time now is 11:17 AM.


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