View Single Post
Old 11-14-2021, 02:20 PM   #1
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
[GUI Plugin] AudioBook_Duration

[GUI Plugin] AudioBook_Duration

This plugin calculates the duration of the audiobooks or audio files associated with a book (within its folder), and adds that duration in a custom column that we have previously created for this purpose. (It will be a duration column but we can call it whatever we want).

At the moment it has no additional functions.
Main features

Calculate the duration of the books in our library, or of the associated audios that are included in the folders of the selected books.

Put that result in a custom column, previously.


Special notes
Requires calibre 5.xx (python3)(QT5)
It needs python3
Compatible with calibre 6.xx (QT6)

suported operating systems:
-Linux (Pluguin is working) Tested on ubuntu 20.04
-Windows (Plugin is working) Tested on windows 10
Maybe fail if calibre plugin folder doesn't have permisión for all users, i tryied to solve this and i think its solved.
-Mac (Plugin is working) Tested on MacOS Big Sur 11.6

Supported languages (This plugin has support for translations):
You are free to provide a translation in your preferred language
Spoiler:
For now supported:
-English
-French
-Spanish
-Catalan


Installation Notes
Download the attached zip file and install the plugin as described in the Plugins Overview thread.
You can add it to the menu bar to use it comfortably (it is added by default)

Create a custom column
Click on the button of our plugin "AudioBook_Duration" on the button to configure the plugin, and in this field fill in the name of the custom column # duration or the name you have given it.
Select an audiobook from our calibre library and press the button "update the audiobook duration column"

Version Update
# Version 1.0.9 - 2022-07-11
Added support for Calibre 6.x and new libraries QT6


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

Changelog
Spoiler:
# Version 1.0.9 - 2022-07-11
Added support for Calibre 6.x and new libraries QT6

# Version 1.0.8 - 2022-01-07
Removed word "plugin" from the name on tool-bar (its' redundant on a plugin)
Changed the way is showed duration, in old versions was days hours minutes seconds DD:HH:MM:SS
Now is only Hours Minutes Seconds HH:MM:SS
Added support for language Catalan (Català)

# 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

# Version 1.0.6 - 2021-12-13
Added support for (M4b) extension.

# Version 1.0.5 - 2021-12-08
Fixed requirements description.
This plugin needs, calibre 5.0 or newer.

# Version 1.0.4 - 2021-11-23
Added New Supported file type extension (Flac, Mp4, Aac, Ac3)
All Supported file extensions (Mp3, M4a, Mp4, Ogg, Flac, Aac, Ac3)

# Version 1.0.3 - 2021-11-21
Added progress bar to see the percentage of books processed. (basic progress bar)

# Version 1.0.2 - 2021-11-17
Version number included in both the about.txt file and the __ini.py__ file
Modified the automatic refresh when the plugin finishes calculating the duration of each audiobook

# Version 1.0.1 - 2021-11-15
Added automatic refresh when the plugin finishes calculating the duration of the audiobooks, when finishes all.

# Version 1.0.0 - 2021-11-14
Released First version of AudioBook_Duration plugin
This plugin calculates the duration of the audiobooks or audio files associated with a book (within its folder),
and adds that duration in a custom column that we have previously created for this purpose.
(It will be a duration column but we can call it whatever we want).


screenshots
Attached Thumbnails
Click image for larger version

Name:	1.jpg
Views:	595
Size:	2.7 KB
ID:	190242   Click image for larger version

Name:	2.jpg
Views:	617
Size:	17.1 KB
ID:	190243   Click image for larger version

Name:	3.jpg
Views:	622
Size:	11.0 KB
ID:	190244   Click image for larger version

Name:	4.jpg
Views:	560
Size:	7.7 KB
ID:	190245   Click image for larger version

Name:	5.jpg
Views:	528
Size:	4.5 KB
ID:	190246   Click image for larger version

Name:	6.jpg
Views:	515
Size:	7.2 KB
ID:	190247   Click image for larger version

Name:	duration.png
Views:	519
Size:	25.1 KB
ID:	190381   Click image for larger version

Name:	unrar.png
Views:	408
Size:	27.7 KB
ID:	191267  
Attached Files
File Type: zip AudioBook_Duration.zip (726.5 KB, 49941 views)

Last edited by wiso; 07-11-2022 at 12:23 PM. Reason: update to V1.0.8
wiso is offline   Reply With Quote