513 3 Posted April 10, 2021 Posted April 10, 2021 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 ?
Guest Posted April 10, 2021 Posted April 10, 2021 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.
zovilla 6 Posted April 27, 2023 Posted April 27, 2023 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
zovilla 6 Posted April 27, 2023 Posted April 27, 2023 I also tried cbr with jpg files in it. Doesn't work either.
zovilla 6 Posted April 28, 2023 Posted April 28, 2023 Hi Luke Thanks for asking I Have the following data structure to test a lot of different formats. 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: I go in the second to check cbr with webb files: so here I check the cbr file "Ethan Ringler 03 - Unsichtbare Schatten (Piredda 2009) (webp).cbr" (Folder in the middle): There is nothing I can start/show/play Same in the third structure with cbr files with jpgs on it: 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. Here my settings on the Book library: 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
Luke 38560 Posted April 28, 2023 Posted April 28, 2023 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.
zovilla 6 Posted April 28, 2023 Posted April 28, 2023 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: 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
zovilla 6 Posted April 28, 2023 Posted April 28, 2023 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?
Luke 38560 Posted May 1, 2023 Posted May 1, 2023 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.
zovilla 6 Posted May 9, 2023 Posted May 9, 2023 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. 1
dicion 2 Posted May 28, 2023 Posted May 28, 2023 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 } } } 1
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now