Jump to content

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


Recommended Posts

Posted (edited)

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
Posted

Hi there, can you please attach the emby server log from an example? Thanks .

Posted

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,

Posted
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+.

Posted

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

Posted

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

Posted

Thanks, I look forward to the new updates

  • 2 weeks later...
Posted

Can confirm the new Android app (3.2.26) has resolved the renaming issues (screenshot attached)

Screenshot_20211103-182505_Files by Google.jpg

Posted

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

Posted
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. 

  • 1 month later...
Posted
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
  • 3 years later...
Posted

Emby Server 4.9.1.8+ will now have a book reader in the web app for the following formats:

  • PDF
  • EPUB
  • MOBI
  • FB2
  • CBZ
  • CBR

Please try it out once available and report your experience in the Testing Area of the community:

Thanks !

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...