seanap / Auto-M4B-Tool

Script to automate using m4b-tool to convert recently added mp3 audiobook folders to a single chapterized m4b.
92 stars 3 forks source link

Conversion fails with mentions of a PHP error #5

Open Suwanneman opened 3 years ago

Suwanneman commented 3 years ago

Hello, thank you very much for this entire project. I have been using the plugin for a while now and decided to try and improve my workflow with this tool. I must also admit that I have very little knowledge of coding so this might just be a little error that is easily fixable.

When I run the tool with an audiobook folder in /temp/mp3merge I get the following output;

'Maurice Leblanc - Arsene Lupin, Gentleman Burglar/'
Folder Detected
Sampling ./Maurice Leblanc - Arsene Lupin, Gentleman Burglar/Arsene Lupin, Gentleman Burglar 01.mp3
Bitrate = 66107
The folder Maurice Leblanc - Arsene Lupin, Gentleman Burglar will be merged to /untagged/Maurice Leblanc - Arsene Lupin, Gentleman Burglar.m4b
Starting Conversion
PHP Warning:  touch(): Unable to create file /untagged/Maurice Leblanc - Arsene Lupin, Gentleman Burglar.log because No such file or directory in phar:///usr/local/bin/m4b-tool/src/library/M4bTool/Command/AbstractCommand.php on line 221
PHP Warning:  file_put_contents(): Filename cannot be empty in phar:///usr/local/bin/m4b-tool/src/library/M4bTool/Command/AbstractCommand.php on line 228
an error occured, that has not been caught:
Array
(
    [type] => 2
    [message] => file_put_contents(): Filename cannot be empty
    [file] => phar:///usr/local/bin/m4b-tool/src/library/M4bTool/Command/AbstractCommand.php
    [line] => 228
)
mv: cannot stat '/media/usb1/shares/Media/Audiobooks/temp/untagged/Maurice Leblanc - Arsene Lupin, Gentleman Burglar.chapters.txt': No such file or directory
Finished Converting
Deleting duplicate mp3 audiobook folder
No folders detected, next run 5min...`

Hopefully you can help me with this

Dusky commented 2 years ago

I get this error too