Mobileread
How to remove number suffix in download filename
#1  Narga 10-03-2020, 08:46 AM
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
title - author.epub
The newest version of Calibre Content Server:
Code
title - author_number.epub
Thanks in advance.
Reply 

#2  kovidgoyal 10-03-2020, 10:04 AM
How are you downloading it? Using moon reader, or a browser or something else?
Reply 

#3  Narga 10-03-2020, 10:06 AM
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
utf8:"filename.epub
Reply 

#4  kovidgoyal 10-03-2020, 10:42 AM
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.
Reply 

#5  Narga 10-03-2020, 11:06 AM
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.
Reply 

#6  kovidgoyal 10-03-2020, 12:58 PM
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.
Reply 

#7  Narga 10-05-2020, 01:07 AM
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.
Reply 

#8  theducks 10-05-2020, 11:22 AM
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 )
Reply 

#9  nqk 10-06-2020, 11:36 PM
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.
Reply 

#10  Narga 10-07-2020, 11:26 PM
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:
Reply 

  Next »  Last »  (1/2)
Today's Posts | Search this Thread | Login | Register