View Single Post
Old 01-02-2022, 02:25 PM   #27
wiso
Enthusiast
wiso knows what time it iswiso knows what time it iswiso knows what time it iswiso knows what time it iswiso knows what time it iswiso knows what time it iswiso knows what time it iswiso knows what time it iswiso knows what time it iswiso knows what time it iswiso knows what time it is
 
wiso's Avatar
 
Posts: 33
Karma: 2114
Join Date: Nov 2021
Device: kindle
Quote:
Originally Posted by silatiw View Post
I catalog audiobooks in .zip format. Multi-file audiobooks reside in a folder compressed into a .zip file. and then added to the caliber.
Can you make your plugin be able to calculate the duration of the audiobook in such a compressed .zip file?
Is such a challenge possible?

The name of the folder with the .mp3 files <title - author>
The name of the .zip file <title - author.zip>

# Version 1.0.7 - 2022-01-02
Added support for single compressed files (Zip, Rar) without password.
Example mi_book.zip that includes a forlder and files for each chapter
(chapter1.mp3, chapter2.ogg, chapter3.aac ...)

native support for .zip files

we need to install or add a file for rar support
instructions for support of .rar files.

windows:
https://www.rarlab.com/rar_add.htm
Add the file unrar.exe inside the plugin folder like User / AppData / roaming / calibre / plugins / AudioBook_Duration / rarfile / unrar.exe

linux:
install rar and unrar.
example for debian ubuntu.
sudo apt-get install rar
sudo apt-get install unrar

mac:
untested, but should be similiar like linux
install rar and unrar


P.S: I know calibre had support for zip 7z and rar files on calibre.utils, but i can't open rar files only with unrar.dll i need unrar.exe for unrar_tool too :S
(i use unrar_tool to open rar files whithout extract files)
wiso is offline   Reply With Quote