Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Previously stuck video returns nothing at all #224

Open
deldesir opened this issue Jul 16, 2024 · 1 comment
Open

Previously stuck video returns nothing at all #224

deldesir opened this issue Jul 16, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@deldesir
Copy link
Collaborator

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 deldesir changed the title Some stuck videos return nothing at all Previously stuck video returns nothing at all Jul 16, 2024
@holta holta added the bug Something isn't working label Jul 16, 2024
@holta
Copy link
Member

holta commented Jul 16, 2024

@deldesir this sounds like a bug from the user's perspective!

  1. What other iiab/calibre-web GitHub issues are most related, to help us keep track?
  2. What would you recommend, to ensure this problem is clearly explained in "Tasks" view?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants