Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 10-25-2022, 09:50 PM   #1
American_Desi
Connoisseur
American_Desi began at the beginning.
 
Posts: 72
Karma: 10
Join Date: Oct 2016
Device: iPad Pro 12.9"
Problems Getting Desired FileName Format

I seem to be doing something wrong with my E-book library.

I want my E-book files (mostly PDFs) to be saved in a format that has the filename identical to the title.

What is happening is the files are being saved in my E-book directory/AuthorName/Title(####)/truncated title - author.pdf

I'm not sure what the #### - some number with no significance to me which is fine.

But the filename in truncatedtitle-author format is problematic.

How can I make Calibre rename all my existing Ebooks/pdfs in its library so that the filename matches the title only, and do this for all future Ebooks/pdfs that I add later?

When I go to Preferences/Import-Export/Saving books to disk, I get something that looks like what I want, but what I have there doesn't seem to match what Calibre is doing (screenshot below)
Attached Thumbnails
Click image for larger version

Name:	Screen Shot 2022-10-25 at 8.49.23 PM.png
Views:	137
Size:	303.1 KB
ID:	197369  
American_Desi is offline   Reply With Quote
Old 10-25-2022, 11:51 PM   #2
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: 45,772
Karma: 168959602
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Easy answer is you don't. The format of the calibre library is to be treated as a black box. Stop trying to peek under the skirts. See the calibre faqs for Why doesn’t calibre let me store books in my own folder structure?

What you do with the filenames you export is up to you and any templates you may create.

The number is the bookid in the database for that library. As an example, it will be used when rebuilding the library database if the database gets corrupted.

As for the truncation, that is due to the maximum path lengths in many operating systems. For Windows, that would be 254 characters. Again, the database records the full title and you can see it in your exported files.

You don't like this? calibre is open source so feel free to modify it for your use.

You may also want to read the following message: Want to change folder structure or file names in the Calibre library?. Nothing has really changed since it was written back in 2011.

Edit: Manichean's message is stickied in the Library Managment subforum.
DNSB is offline   Reply With Quote
Advert
Old 10-26-2022, 05:18 AM   #3
Quoth
Still reading
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 13,886
Karma: 103895653
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
Also even if you could, it won't work. Titles can easily have characters illegal in file names (varies with OS and filesytem in use).

As DNSB says, pretend the Calibre files don't exist. They only exist at all because it's never worked well for any database to import that sort of thing inside a database.

That's why there is an Export to Disk File command and also why Calibre creates a copy of any file imported (as if it was really inside a database).
Quoth is offline   Reply With Quote
Old 10-27-2022, 02:06 AM   #4
American_Desi
Connoisseur
American_Desi began at the beginning.
 
Posts: 72
Karma: 10
Join Date: Oct 2016
Device: iPad Pro 12.9"
OK, thanks. But if we can't determine the filename format, what is that menu I took a screenshot of? That's what it looks like it's supposed to allow one to do. It specifically says, "You can control what folders the files are saved in and what filenames they are given."
American_Desi is offline   Reply With Quote
Old 10-27-2022, 02:16 AM   #5
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,691
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Adding Books to a library and Saving Books to Disk are separate Actions, see ==>> The Graphical User Interface — calibre 6.7.1 documentation

BR
BetterRed is offline   Reply With Quote
Advert
Old 10-27-2022, 04:16 AM   #6
kacir
Wizard
kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.
 
kacir's Avatar
 
Posts: 3,463
Karma: 10684861
Join Date: May 2006
Device: PocketBook 360, before it was Sony Reader, cassiopeia A-20
Quote:
Originally Posted by American_Desi View Post
When I go to Preferences/Import-Export/Saving books to disk, I get something that looks like what I want, but what I have there doesn't seem to match what Calibre is doing (screenshot below)
This preference is for saving books to the disk when you use "Save to disk" function from the right-click menu.

You can not change how the Calibre saves the books to its library folder. We have had this discussion numerous times here. Not possible. Out of question. Calibre has milions of users and has version for Windows, Mac, Linux. There is also FreeBSD port but appears to be older version. You can even use Library created on one operating system under another one (or at very least do an import).

You are supposed to treat the library as a black box and only access the files through the Calibre interface. When you want to have a subset of your books for export to a device, for example, you use "save to disk" function or "send to device" function. Calibre interface is much more powerful for working with books than any file manager. The books are in individual files, with cover images and metadata.opf file only to make the system more robust in case something catastrophic happens - like disk corruption, irreparable crash of Calibre database or whatever. It is not supposed to be accessed by user under normal circumstances.
kacir is offline   Reply With Quote
Old 04-21-2023, 12:29 AM   #7
American_Desi
Connoisseur
American_Desi began at the beginning.
 
Posts: 72
Karma: 10
Join Date: Oct 2016
Device: iPad Pro 12.9"
OK sorry to dredge this topic up again. Your answers are clear. The reason I was asking this is, when sync the files Calibre Companion on my iPad and then export the files from Calibre Companion to one of my various e-book platforms, the files display in those e-book apps as the filename rather than with the title & author metadata that I edited and saved in Calibre.

If I can't change the file name, is there a way to sync files to my Calibre Companion and other e-book programs in a way that they understand and import all relevant metadata?
American_Desi is offline   Reply With Quote
Old 04-21-2023, 05:24 AM   #8
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,401
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by American_Desi View Post
OK sorry to dredge this topic up again. Your answers are clear. The reason I was asking this is, when sync the files Calibre Companion on my iPad and then export the files from Calibre Companion to one of my various e-book platforms, the files display in those e-book apps as the filename rather than with the title & author metadata that I edited and saved in Calibre.

If I can't change the file name, is there a way to sync files to my Calibre Companion and other e-book programs in a way that they understand and import all relevant metadata?
CC is abandonware. I doubt you will get any help with this.
chaley is offline   Reply With Quote
Old 04-21-2023, 06:27 PM   #9
American_Desi
Connoisseur
American_Desi began at the beginning.
 
Posts: 72
Karma: 10
Join Date: Oct 2016
Device: iPad Pro 12.9"
Quote:
Originally Posted by chaley View Post
CC is abandonware. I doubt you will get any help with this.
OK, granted, but even if I load the files onto my apps directly, I'm still having the same problem with them importing files with weird file names that show up as the titles of these e-books.
American_Desi is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Change Filename format in repertories? aurigod Library Management 6 12-02-2015 04:15 PM
Filename format for input control Tom Swift Library Management 4 04-06-2013 02:36 AM
Save to Disc - Folder name / Filename Problems Distorted Vision Library Management 19 03-11-2012 10:37 AM
Help with filename format in save jblitereader Calibre 16 08-27-2010 07:18 PM
output filename format jdh Calibre 6 08-12-2009 09:35 PM


All times are GMT -4. The time now is 03:53 PM.


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