Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 11-10-2024, 11:37 AM   #1
C Alberga
Enthusiast
C Alberga began at the beginning.
 
Posts: 45
Karma: 10
Join Date: Jul 2012
Device: none
Duplicate file names on books, another long file name effect.

I've searched, but not found (doesn't mean it's not there) a "fix" for this.

I have several sets of e-books which when I try to extract, let's say, the .epub files give me a set of files with identical names which I have to manually rename to be able to put them in a single directory. As an example:

The Year's Best Science Fiction, First Annual Collection
The Year's Best Science Fiction, Second Annual Collection
etc. up to 35

With the Author (editor, in fact) Gardner Dozois

Results in 35 .epub files all named:

The Year's Best Science Fiction - Gardner Dozois

Is there any way to get Calibre to avoid creating duplicate names, other than manually changing the titles to something other than their original name?
C Alberga is offline   Reply With Quote
Old 11-10-2024, 11:41 AM   #2
Sirtel
Grand Sorcerer
Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.
 
Sirtel's Avatar
 
Posts: 13,425
Karma: 238915019
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
Don't copy them from the library folder. Use Save to Disk to save them outside Calibre.
Sirtel is offline   Reply With Quote
Advert
Old 11-10-2024, 01:36 PM   #3
C Alberga
Enthusiast
C Alberga began at the beginning.
 
Posts: 45
Karma: 10
Join Date: Jul 2012
Device: none
That doesn't change the names of the .epub files. If I want to collect them into a single directory I still have to rename them. Similarly, if I want to attach them to an e-mail (assuming my mail program allows attachments with identical names -- haven tried THAT) the recipient has the same problem, and has to same them one at a time, either to different directories, or changing the names.

As a general rule, it is not a good idea to have non-identical files having identical names. The only reason that comes to mind is back-ups, where having the in the same directory would never occur.
C Alberga is offline   Reply With Quote
Old 11-10-2024, 02:27 PM   #4
Sirtel
Grand Sorcerer
Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.
 
Sirtel's Avatar
 
Posts: 13,425
Karma: 238915019
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
Do you mean they have identical titles in the GUI? That's bad metadata and not the fault of calibre. You can set calibre to get titles from the file names, not metadata, when adding books.
Sirtel is offline   Reply With Quote
Old 11-10-2024, 03:02 PM   #5
C Alberga
Enthusiast
C Alberga began at the beginning.
 
Posts: 45
Karma: 10
Join Date: Jul 2012
Device: none
If, by the GUI you mean the program calibre.exe, yes I'm using that. I select the "Save Single Format to Disk" from the "Save to Disk" icon on the toolbar. That copies the selected books' sub-directory, with all but one e-book file plus the Cover.jpg and the .opf file. So the desered "books" are still wrapped in a couple of layers of directory, and the filenames are not changed in any way.

What I want (but can live without) would be an option which pulls the .epub file directly into a single directory, with NON-identical names. But please, do give me the latter!
C Alberga is offline   Reply With Quote
Advert
Old 11-10-2024, 03:12 PM   #6
C Alberga
Enthusiast
C Alberga began at the beginning.
 
Posts: 45
Karma: 10
Join Date: Jul 2012
Device: none
I just reread your post and would like to expand a bit. If you look at my examples, this case the books metavalue for "title" is correct. It is long, and in the set the differences in the title are cut off in each case of creating a file name which does not need the "long title" feature of Windows 10. So, the file names for all 35 editions of "The Years Best..." (see above) as constructed by the "save to disk" option are identical. It is not the metadata that is bad, it is the calibre-constructed filename. That doesn't generally matter (although it has tripped up some clean-up programs which compare filenames), but it DOES matter if these ad hoc, constructed names replace the original, albeit long, filename (or names constructed faithful to the metadata) ginned up by Calibre!
C Alberga is offline   Reply With Quote
Old 11-10-2024, 03:14 PM   #7
BetterRed
null operator (he/him)
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: 21,699
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by Sirtel View Post
Don't copy them from the library folder. Use Save to Disk to save them outside Calibre.
↑ ↑ ↑ ✔

Which is configured in Preferences->Save to Disk:

Click image for larger version

Name:	Screenshot 2024-11-11 070543.jpg
Views:	122
Size:	242.7 KB
ID:	211960

BR
BetterRed is offline   Reply With Quote
Old 11-11-2024, 06:23 AM   #8
C Alberga
Enthusiast
C Alberga began at the beginning.
 
Posts: 45
Karma: 10
Join Date: Jul 2012
Device: none
Thank you! That was what I was missing, I assumed (incorrectly) that the same shorten-file-names rule would be applied there. All is well not!
C Alberga is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to use file names as metadata when adding books user743 Library Management 9 04-28-2014 10:45 AM
Duplicate Problem - Extra books on file system but not in Calibre spedinfargo Library Management 3 12-14-2013 02:45 PM
Potential problems with long file names GeoffR Kobo Reader 13 03-25-2013 05:25 AM
Is there anything in Calibre that can fix long file names automatically? dmunson Calibre 4 02-05-2012 06:12 PM
File Names to long? JTAL604622 Calibre 5 08-31-2011 03:21 AM


All times are GMT -4. The time now is 06:45 PM.


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