Jump to content

Comic Library - Downloading .cbr/.cbz files often downloads as a .epub


Nebarik

Recommended Posts

As per title. I feel like Emby is doing some unnecessary file renaming when downloading comics. 

Emby Server Docker version 4.6.4.0
Accessing via Chrome for Mac, For Android, and the Android App. 

Depending on the browser/app it gives slightly different results. sometimes it works fine and downloads the .cbr/.cbz file with the correct file name. "filename.cbr"

But a lot of the time it downloads it as "filename.cbr.epub" or "filename.epub", or in 1 weird case in chrome it completely renamed it as "download.epub". I haven't worked out what causes each occurance yet, but it's so common its more likely to rename it than not.

Any chance this bug could be looked into so Emby just downloads the file with the existing file name. Thanks,

Edited by Nebarik
Link to comment
Share on other sites

Original file name is "Animosity (2016) - 01.cbr"
Android Chrome logs. Clicked download and it came out as "Animosity (2016) - 01.cbr.epub"
https://pastebin.pl/view/a7713d53

Android app logs. Set download location to External > Downloads folder. File came out as "Animosity__2016__-_01.cbr"
https://pastebin.pl/view/0c1c7813

Original file name is "約束のネバーランド (2016) - 01.cbr" 
(In hindsight I'm guessing the non-english characters are the problem here, also happens on Android chrome)
Mac Chrome logs. Clicked download and it came out as filename "Download.epub"
https://pastebin.pl/view/4cdc5fb8

While testing, I couldnt get it to replicate with CBZ file types on either Mac or Android Chromes. They seem immune to the renaming issue. 
The Android app still renames the spaces and symbols, but keeps it as a .cbz. 

Hopefully the logs help, they dont appear to immediately give the obvious answer to me. 

Thanks,

Link to comment
Share on other sites

Quote

The Android app still renames the spaces and symbols

Hi, this part of it should be resolved in Emby for Android 3.2.24+.

Link to comment
Share on other sites

The rest of it I think is caused by the browser, probably due to the Content-Type http response header we're sending. For cbr files, the content-type we're sending is application/epub+zip

Link to comment
Share on other sites

  • 2 weeks later...
10 hours ago, Luke said:

Hi, there's nothing in the Android app for this. The change will actually be in the server.

For the Chrome based downloading yeah, awaiting a update for that fix. 

But like you said, the Android app update fixes the underscore renaming:

On 24/10/2021 at 16:40, Luke said:

Hi, this part of it should be resolved in Emby for Android 3.2.24+.

I was just posting to show that it is indeed fixed in the app now. 

Link to comment
Share on other sites

  • 1 month later...
chowbok
On 10/24/2021 at 12:43 AM, Luke said:

I guess we should probably change that to application/x-cbr

Strictly speaking, the MIME type for CBR files is application/vnd.comicbook-rar, and for CBZ files it's application/vnd.comicbook+zip.

  • Thanks 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...