Open deldesir opened 4 months ago
When a video is stuck due to unavailable fragments, we know this because it is in fact stuck at x bytes. The bytes progress is captured with downloaded_bytes used in the progress_hook's lambda function (in xklb at https://github.com/chapmanjacobd/library/blob/3d22ac49488db6a59a6ae7999d0c048473c41428/xklb/createdb/tube_backend.py#L394C9-L396C10).
A particular video, https://www.youtube.com/watch?v=4BL65HElOPg, just returns nothing. The download_bytes key couldn't be read.
root@lrn2:/usr/local/calibre-web-py3/cps/tasks# tail -f /var/log/xklb.log 2024-07-16 11:19:09 - [Debug] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2024-07-16 11:19:09 - [Debug] File "/root/.local/pipx/venvs/xklb/lib/python3.12/site-packages/yt_dlp/downloader/common.py", line 448, in download 2024-07-16 11:19:09 - [Debug] self._hook_progress({ 2024-07-16 11:19:09 - [Debug] File "/root/.local/pipx/venvs/xklb/lib/python3.12/site-packages/yt_dlp/downloader/common.py", line 481, in _hook_progress 2024-07-16 11:19:09 - [Debug] ph(status) 2024-07-16 11:19:09 - [Debug] File "/root/.local/pipx/venvs/xklb/lib/python3.12/site-packages/xklb/createdb/tube_backend.py", line 394, in <lambda> 2024-07-16 11:19:09 - [Debug] lambda d: log.debug(f"downloading {d['_percent_str']} {d['_speed_str']} {d['downloaded_bytes']} bytes") 2024-07-16 11:19:09 - [Debug] ~^^^^^^^^^^^^^^^^^^^^ 2024-07-16 11:19:09 - [Debug] KeyError: 'downloaded_bytes' 2024-07-16 11:19:09 - [Error] Error 1 occurred while running lb-wrapper's xklb commands.
@deldesir this sounds like a bug from the user's perspective!
When a video is stuck due to unavailable fragments, we know this because it is in fact stuck at x bytes. The bytes progress is captured with downloaded_bytes used in the progress_hook's lambda function (in xklb at https://github.com/chapmanjacobd/library/blob/3d22ac49488db6a59a6ae7999d0c048473c41428/xklb/createdb/tube_backend.py#L394C9-L396C10).
A particular video, https://www.youtube.com/watch?v=4BL65HElOPg, just returns nothing. The download_bytes key couldn't be read.