Open avni opened 2 hours ago
Both IIABs have outdated yt-dlp:
Please update your IIABs with sudo iiab-update -f
The issue is however reproducible ~but it is not related to IIAB Calibre-Web~.
[Testing directly with yt-dlp...]
Not a missing format issue. The error traceback is:
[2024-11-16 20:35:09,491] ERROR {cps.editbooks:326} cannot access local variable 'book_path' where it is not associated with a value
Traceback (most recent call last):
File "/usr/local/calibre-web-py3/cps/editbooks.py", line 323, in meta
resp = move_mediafile(requested_file, current_user_name, shelf_id, media_id)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/calibre-web-py3/cps/editbooks.py", line 313, in move_mediafile
new_book_path = os.path.join(config.config_calibre_dir, book_path)
^^^^^^^^^
UnboundLocalError: cannot access local variable 'book_path' where it is not associated with a value
This issue is related to https://github.com/iiab/calibre-web/issues/203.
The problem arises because when IIAB Calibre-Web is looking for the video ID, it assumes it is inside square brackets ([...]) in the filename. What happened for this specific video, the filename has two sets of square brackets. This is fixed in #285 which ensures video IDs are not always in the first set of square brackets if there are two or more of them, but in the last.
Describe the bug/problem
Error downloading specific video: https://www.youtube.com/watch?v=Ly6ZhQVnVow. 2 different errors on 2 different IIABs.
--
To Reproduce
Steps to reproduce the behavior:
Logfile
Environment (please complete the following information):