Hello,
Since Calibre 5x, when I download a book from the content server, it's included a number as suffix. So, in I need to rename it before start reading from the previous location of the book in an ebook reader, Moon Reader for example.
Is this possible to remove the suffix of download filename?
The previous version of Calibre Content Server:
Code
The newest version of Calibre Content Server:
Code
title - author_number.epub
Thanks in advance.
How are you downloading it? Using moon reader, or a browser or something else?
Quote kovidgoyal
How are you downloading it? Using moon reader, or a browser or something else?
Both of them, when I download via Moon Reader, the filename include
Code
The utf-8 thing is because moon reader is not properly parsing the Content-disposition header.
As for the id after the filename, it's deliberate, to ensure that books with the same titleauthor dont clobber each other.
Quote kovidgoyal
As for the id after the filename, it's deliberate, to ensure that books with the same titleauthor dont clobber each other.
How can I remove the id? Is this posible or turn-off as an option? Because it's change all my reading proccess and anotation from the previous version.
The id is constant it never changes. And no there is no option for it, best you can do is run from source and change it there.
Quote kovidgoyal
The id is constant it never changes. And no there is no option for it, best you can do is run from source and change it there.
Thanks for your information, but I found the book id will change when I move to another library or after remove then re-added the ebook.
At this time, I read more than 200 ebooks with reading proccess and anotation.
From the Calibre 5xx, I must change the ebook's filename by hand per downloaded ebook before start continuing reading or look for the notes (so I'll miss/lost some ebooks).
Suggest: I hope you could replace the book id by another book metadata like: published date, published edition because the book id is changeable.
Use the built in 'Copy to Library (delete after...)' function to move books to another Library. It takes care of the ID change.
But what are you doing. ID is only part of the Folder name, not the books title (internal metadata)
If you had added {id} to your save template, you have found out, that only is accurate for a single Library instance. (been there back in 2011 found it made a bigger mess than I was trying to cure )
Quote theducks
ID is only part of the Folder name, not the books title
If you hit the download button on the Content Server, the downloaded file is named: Title-Authors-ID.epub. Guess he doesn't want the filename long that way. But Kovid has a solid point.
The only way to control downloaded filename from the Content Server, as far as I know, is use Calibre Companion, which has filename template.
Quote nqk
If you hit the download button on the Content Server, the downloaded file is named: Title-Authors-ID.epub. Guess he doesn't want the filename long that way. But Kovid has a solid point.
The only way to control downloaded filename from the Content Server, as far as I know, is use Calibre Companion, which has filename template.
Yes, you're right. Before version 5, the downloaded file name is:
Quote
Title-Authors.epub
But now, from the version 5, it's became:
Quote
Title-Authors_ID.epub
To continuing read the books from other device or review the anotation from older/read ebooks, we need to change the filename by hands, so you will missed some books or important notes if you can't remember all of them.
For example:
- You read the Title-Authors.epub from your smartphone.
- You want to continuing read it on the tablet, download it from Content Server with the file: Title-Authors_ID.epub
- You start reading from the beginning or dive into the reader's folder to change metadata file of them.
- If you don't know about the reader/system too much, you lost your anotation, lost the reading book's proccess.