Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Server

Notices

Reply
 
Thread Tools Search this Thread
Old 03-16-2021, 04:50 AM   #1
Cootey
Absentminded Reader
Cootey ought to be getting tired of karma fortunes by now.Cootey ought to be getting tired of karma fortunes by now.Cootey ought to be getting tired of karma fortunes by now.Cootey ought to be getting tired of karma fortunes by now.Cootey ought to be getting tired of karma fortunes by now.Cootey ought to be getting tired of karma fortunes by now.Cootey ought to be getting tired of karma fortunes by now.Cootey ought to be getting tired of karma fortunes by now.Cootey ought to be getting tired of karma fortunes by now.Cootey ought to be getting tired of karma fortunes by now.Cootey ought to be getting tired of karma fortunes by now.
 
Cootey's Avatar
 
Posts: 1,258
Karma: 6467285
Join Date: Apr 2017
Device: Kobo Mini, Libra Colour & Elipsa; Kindle Paperwhite 3 & 4; iOS apps
Question Changing legacygetepub… naming conventions

I've noticed on my Kobo Clara that the ebooks that I sideload through Calibre on the desktop are sorted into neat author directories with an ebook name that's legible by a human. I'm assuming that Calibre is doing this organization because books I sideload manually by dragging and dropping into the root directory of the mounted Kobo drive sit at root with whatever name they had before.

However, the books I grab through the server all have the following naming convention like this: legacygetkepub1111my_server_namebook - author_1111.kepub.epub. Is there a setting in Calibre I can use to clean this up? Obviously, Kobo is grabbing the filename as is and downloading it onto the root directory. I don't expect the Calibre web server to change Kobo's downloading behavior. But maybe there is someway to shape the Calibre names to be less machine code-like? I've been looking, and if it's there, I'm missing it. Thanks.
Cootey is offline   Reply With Quote
Old 03-16-2021, 07:52 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 44,380
Karma: 23766374
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
The server download links include a suggested file name, via the Content-Disposition HTTP header, the kobo is ignoring that and generating its own. There isnt really anything the server can do to control that.
kovidgoyal is offline   Reply With Quote
Advert
Old 03-16-2021, 08:59 PM   #3
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303822
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Yes, it is a problem with the browser on the device. I looked back at a conversation I had with Kobo when the big changes to the calibre content server were being made. They are using the URL with the Content-Disposition used if that fails somehow. The conversation did include a suggestion they might change to use the Content-Disposition first, but, it looks like that never happened.
davidfor is offline   Reply With Quote
Old 03-19-2021, 12:21 AM   #4
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303822
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
I had the chance to ask a Kobo about this. They did implement the change to use the Content-Disposition header if it was supplied. But, the problem is that calibre is sending "filename" and "filename*" and they aren't handling that properly. I don't think they were expecting the latter. I don't remember it being there the last time I looked at this. I'm pretty sure this will be fixed in the next firmware update. I expect that they will just use "filename" and ignore "filename*".

And to check, I did find a site that only sent "filename" and it worked as desired.
davidfor is offline   Reply With Quote
Old 03-19-2021, 01:24 AM   #5
Cootey
Absentminded Reader
Cootey ought to be getting tired of karma fortunes by now.Cootey ought to be getting tired of karma fortunes by now.Cootey ought to be getting tired of karma fortunes by now.Cootey ought to be getting tired of karma fortunes by now.Cootey ought to be getting tired of karma fortunes by now.Cootey ought to be getting tired of karma fortunes by now.Cootey ought to be getting tired of karma fortunes by now.Cootey ought to be getting tired of karma fortunes by now.Cootey ought to be getting tired of karma fortunes by now.Cootey ought to be getting tired of karma fortunes by now.Cootey ought to be getting tired of karma fortunes by now.
 
Cootey's Avatar
 
Posts: 1,258
Karma: 6467285
Join Date: Apr 2017
Device: Kobo Mini, Libra Colour & Elipsa; Kindle Paperwhite 3 & 4; iOS apps
Quote:
Originally Posted by kovidgoyal View Post
The server download links include a suggested file name, via the Content-Disposition HTTP header, the kobo is ignoring that and generating its own. There isnt really anything the server can do to control that.
I had a feeling the Kobo browser was at fault, but hoped you had a work around. Thanks for replying.
Cootey is offline   Reply With Quote
Advert
Old 03-19-2021, 01:27 AM   #6
Cootey
Absentminded Reader
Cootey ought to be getting tired of karma fortunes by now.Cootey ought to be getting tired of karma fortunes by now.Cootey ought to be getting tired of karma fortunes by now.Cootey ought to be getting tired of karma fortunes by now.Cootey ought to be getting tired of karma fortunes by now.Cootey ought to be getting tired of karma fortunes by now.Cootey ought to be getting tired of karma fortunes by now.Cootey ought to be getting tired of karma fortunes by now.Cootey ought to be getting tired of karma fortunes by now.Cootey ought to be getting tired of karma fortunes by now.Cootey ought to be getting tired of karma fortunes by now.
 
Cootey's Avatar
 
Posts: 1,258
Karma: 6467285
Join Date: Apr 2017
Device: Kobo Mini, Libra Colour & Elipsa; Kindle Paperwhite 3 & 4; iOS apps
Quote:
Originally Posted by davidfor View Post
I had the chance to ask a Kobo about this. They did implement the change to use the Content-Disposition header if it was supplied. But, the problem is that calibre is sending "filename" and "filename*" and they aren't handling that properly. I don't think they were expecting the latter. I don't remember it being there the last time I looked at this. I'm pretty sure this will be fixed in the next firmware update. I expect that they will just use "filename" and ignore "filename*".

And to check, I did find a site that only sent "filename" and it worked as desired.
Fascinating! Thanks for checking into this, David. I'll look forward to the update. Do you know if there's a way to tell a Calibre to only submit the non asterisked "filename"?
Cootey is offline   Reply With Quote
Old 03-19-2021, 02:30 AM   #7
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303822
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by Cootey View Post
Fascinating! Thanks for checking into this, David. I'll look forward to the update. Do you know if there's a way to tell a Calibre to only submit the non asterisked "filename"?
A quick look at the server code says you would need to modify the calibre code and run from source. The change is in one place only, so it isn't hard. But, whether it is worth it is another thing.
davidfor is offline   Reply With Quote
Old 03-19-2021, 02:36 AM   #8
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 44,380
Karma: 23766374
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by davidfor View Post
I had the chance to ask a Kobo about this. They did implement the change to use the Content-Disposition header if it was supplied. But, the problem is that calibre is sending "filename" and "filename*" and they aren't handling that properly. I don't think they were expecting the latter. I don't remember it being there the last time I looked at this. I'm pretty sure this will be fixed in the next firmware update. I expect that they will just use "filename" and ignore "filename*".

And to check, I did find a site that only sent "filename" and it worked as desired.
Note that as per the spec when both are present filename* should be preferred and allows for arbitrary unicode in filenames.
kovidgoyal is offline   Reply With Quote
Old 03-19-2021, 02:46 AM   #9
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303822
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by kovidgoyal View Post
Note that as per the spec when both are present filename* should be preferred and allows for arbitrary unicode in filenames.
We did discuss this. That's part of the reason I'm expecting a quick fix and maybe the rest addressed later. I think it not using the filename right now was because it was coded without expecting both. But, they might decide not to support filename*. In the context of a dedicated ereader, it just isn't needed. The filenames are not really there to be seen. And it is similar to what calibre does when you do a send-to-device.
davidfor is offline   Reply With Quote
Reply

Tags
calibre, kobo, mac os, naming


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Issues with decimal numbers sorting + sorting series but showing title first TheRealAce Devices 4 09-16-2024 11:40 PM
Collection naming peaceridge Kobo Reader 4 04-19-2017 05:00 PM
File naming? goolie Library Management 2 06-23-2016 07:06 PM
Changing calibre's PDF naming convention paralleluniverse Library Management 1 12-30-2012 08:43 AM
Title Sorting / Author Sorting ahi Sony Reader 0 09-14-2009 01:51 PM


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


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