Jump to content

Recommended Posts

Posted

I recently wanted to try to add the books library feature on emby but idk if it's just me but it's not working. I showed the file that it's there but It doesn't display it. How do I fix it ?Screenshot_20210409-233405.thumb.png.07631a2e0e22d07ce9261ae41e16e6d4.png

Screenshot_20210409-233410.png

Screenshot_20210409-233419.png

Screenshot_20210409-233424.png

Posted

Ebooks are not supported yet only audio books are to some extent... There are some ways of making it work though.. Sounds like s stretch.. but the format like the one you posted is a compressed zip file which holds the images for each page inside...( CBR and CBZ Files (What They Are and How to Open One) (lifewire.com) )

So technically these could be unzipped and named properly ( if not already ) into a folder, inside a mixed content library.. with a proper folder structure.. and viewed like images.. You can also convert these from what I could tell into epub and view them in other apps in your mobile/main device.. ( but these converters don't always work correctly )

I am guessing by what I see on your screenshot that they actually can be served by emby.. and used in a CBZ viewer.. as it stands though the image extraction would probably be the best way.. to compensate. Until this is offered by Emby or built in.

  • 2 years later...
Posted

Hellow dears
I have .cbr files uploaded to my emby in a Books library. Is not working. But on embys support page is written: Supported Media Types: - cbr
https://support.emby.media/support/solutions/articles/44001159115-book-naming

So is it supported or not? Is a little bit wired to me.

I also tried to unzip the files. There are "webp" files inside. Could that be the problem?
If yes, The support page should be corrected in my opinion.

Thanks in advanced for reply

 

Posted

I also tried cbr with jpg files in it. Doesn't work either.

Posted

Hi, what do you mean by not working?

Posted

Hi Luke
Thanks for asking
 

I Have the following data structure to test a lot of different formats. 

image.png.fe884338cd3f6a511e95855094f73b39.png


The cbr with webp files, are in the second (Ethan Ringler) structure
The cbr with jpg files, are in the third (Waltari) structure

Here what Emby show to me with this structure:
image.png.5726a4e067db41526c12b6772fd5e407.png

I go in the second to check cbr with webb files:
image.png.8549afc4adb093313975629e410076b1.png

 

so here I check the cbr file "Ethan Ringler 03 - Unsichtbare Schatten (Piredda 2009) (webp).cbr"
(Folder in the middle):
image.png.d38eafc451ffba28bb10ce1006e7fe72.png

There is nothing I can start/show/play

Same in the third structure with cbr files with jpgs on it:

image.png.9f76057de01ab45f2e9f529d3e6dab0b.png

 

I did also a test for azw3, mobi, opf, pdf and epub (see the first tree in the folder structure). This are formats emby should support says the support page.
Same here, all files are not working (have no start/show/play button). Emby just found the cover pic and set it as cover.image.png.40a06856d331dccd4918d6e8611e0b9a.png

 

Here my settings on the Book library:
image.png.e223bb5adcd9a2d9fc37f5ec4f822564.png

not a lot tho define on books settings. 😃

Any idea to get it work. I'm sure I forgot something to conf... 😃
 

Thanks in advance

 

 

 


 

Posted

Are you saying images are embedded inside the cbz? We don’t open up the files. You have to have images next to the cbz file.

Posted

it is not working ether when I uncompress the images and put the cbr file next to the images.
 
I checked out the other formats like is written on Embys support page:
image.png.dcca29a924eed462710afbfa29feaa81.png

None of the formats work. Have also followed the naming conventions.

Is there anything else I need to consider?

I have Emby Version 4.7.11.0

Thanks in advanced
 

Posted

Works just fine:

image.png

image.png

 

Posted

Ok, my pdf looks similar in emby. But wow to open it now? I can't fins an open/play button.

Or do I have to download it and open it with an other tool like acroat reader?
 

Posted
On 4/28/2023 at 2:31 PM, zovilla said:

 

Or do I have to download it and open it with an other tool like acroat reader?
 

For now this is what you have to do, yes. We plan to expand our book reading features in future updates. Thanks.

  • 2 weeks later...
zovilla
Posted

Oh, I'm really sorry about that. I didn't get that with the download.
Sorry for the hassle. I feel really stupid right now.

Looking forward to the book reading function 🤗
Thanks for your patience.

  • Thanks 1
  • 3 weeks later...
Posted

Because I found this topic when searching for how to do CBZ files in Emby, I saw that in order to have thumbnails, you need to have images next to each CBZ that match, and that this wasn't automatic.

I wrote a script to pull the cover image out of each .cbz file, and rename it to match the CBZ file.

It assumes you have a directory structure like d:\sharename\manga\Manga Title Here (2021)

It will iterate through ALL directories under the root directory specified in the file, and if it can't find a JPG, JPEG, or PNG file named the same as every CBZ, it will do the following:

1) Rename the file.cbz to file.zip
2) extract the entire zip into a temp directory
3) pull the first (alphabetical) file from it, to rename to match the original CBZ, next to the original CBZ file
4) Then it deletes the temp directory.
5) Renames the original file back to .cbz

It's not the cleanest, fastest, or most efficient thing to do, but it's in powershell, uses all internal functions. No external tools necessary, so if you have windows, you're set.

I use it on my library in my setup, can't guarantee it will work for everyone, but if you have some sort of error, you can post it here and I can see if I can help. Maybe :)

 

$directory ="N:\mediashare\Manga\"

# Get all directories within the specified directory
$directories = Get-ChildItem -Path $directory -Directory

# Display the names of the directories
foreach ($dir in $directories) {
    Write-Host "Searching " $dir.FullName

    $cbzDirectory = $dir.Fullname

    # Get all cbz files in the directory
    $cbzFiles = Get-ChildItem -Path $cbzDirectory -Filter "*.cbz"

# Loop through each cbz file
foreach ($cbzFile in $cbzFiles) {
    # Check to see if there is a .png or .jpeg that matches the cbz
    $jpgFilename = $cbzFile.fullname -replace "\.cbz$", ".jpg"
    $jpegFilename = $cbzFile.fullname -replace "\.cbz$", ".jpeg"
    $pngFilename = $cbzFile.fullname -replace "\.cbz$", ".png"
    
    $extract = 0
    if (Test-Path $jpgFilename) {
        Write-host "$cbzFile jpg exists"
    } elseif (Test-Path $jpegFilename) {
        Write-host "$cbzFile jpeg exists"
    } elseif (Test-Path $pngFilename) {
        Write-host "$cbzFile png exists"
    } else {
        write-host "No images exist for $cbzFile so extracting"
        $extract = 1
    }
    

    if ($extract -eq 1) {
        # Rename the cbz file with a .zip extension
        $cbzFileName = $cbzFile.Name
        $zipFileName = $cbzFileName -replace "\.cbz$", ".zip"
        $cbzFilePath = Join-Path -Path $cbzDirectory -ChildPath $cbzFileName
        $zipFilePath = Join-Path -Path $cbzDirectory -ChildPath $zipFileName
        Rename-Item -Path $cbzFilePath -NewName $zipFileName -Force
        
        # Create a temporary directory to extract the zip archive
        $tempDir = New-Item -ItemType Directory -Path (Join-Path -Path $cbzDirectory -ChildPath "temp")
        
        # Extract the zip archive to the temporary directory
        Expand-Archive -Path $zipFilePath -DestinationPath $tempDir.FullName -Force
        
        # Get the first file from the temporary directory
        $firstFile = Get-ChildItem -Path $tempDir.FullName | Select-Object -First 1
        
        if ($firstFile -ne $null) {
            # Rename the extracted file to match the zip file name
            $escapedfirstfile = $firstfile.fullname -replace '\[', '`[' -replace '\]', '`]'
            $newFileName = "{0}{1}" -f (Join-Path -Path $cbzDirectory -ChildPath ($cbzFileName -replace "\.cbz$", "")), $firstFile.Extension
            Move-Item -Path "$escapedfirstfile" -Destination "$newFileName" -Force
            Write-host "Extracted $newFileName"
        }
        
        # Rename the zip file back to the original cbz extension
        Rename-Item -Path $zipFilePath -NewName $cbzFileName -Force
        
        # Clean up the temporary directory
        Remove-Item -Path $tempDir.FullName -Force -Recurse
    }
} 
}

 

  • Thanks 1

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