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

[Bug]: Task failed : wrong channel ID detected on music video #499

Open
2 tasks done
hafx opened this issue Jul 18, 2023 · 2 comments
Open
2 tasks done

[Bug]: Task failed : wrong channel ID detected on music video #499

hafx opened this issue Jul 18, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@hafx
Copy link

hafx commented Jul 18, 2023

I've read the documentation

Operating System

Linux Ubuntu 22.04

Your Bug Report

Describe the bug

I didn't find info about this issue here.
It's why I create this bug because I don't understand what happened.

Version used:

  • 0.3.6 (docker)
  • archivist-redis : latest
  • archivist-es : latest

The first vid in the queue blocked all others and I had this error : task failed in the UI.

Steps To Reproduce

Workaround

  • ignore this vid and TA was able to download all others in the queue.

Expected behavior

If this error appears, continue to download others in the queue.

Relevant log output

`[2023-07-18 20:46:09,373: WARNING/ForkPoolWorker-4] 465d87f9-0dbd-47f6-ad15-0eccbde57449 Failed callback
[2023-07-18 20:46:09,375: ERROR/ForkPoolWorker-4] Task download_pending[465d87f9-0dbd-47f6-ad15-0eccbde57449] raised unexpected: KeyError('thumbnails')
Traceback (most recent call last):
  File "/root/.local/lib/python3.10/site-packages/celery/app/trace.py", line 451, in trace_task
    R = retval = fun(*args, **kwargs)
  File "/root/.local/lib/python3.10/site-packages/celery/app/trace.py", line 734, in __protected_call__
    return self.run(*args, **kwargs)
  File "/app/home/tasks.py", line 193, in download_pending
    VideoDownloader(task=self).run_queue(auto_only=auto_only)
  File "/app/home/src/download/yt_dlp_handler.py", line 178, in run_queue
    vid_dict = index_new_video(
  File "/app/home/src/index/video.py", line 430, in index_new_video
    video.build_json()
  File "/app/home/src/index/video.py", line 154, in build_json
    self._add_channel()
  File "/app/home/src/index/video.py", line 211, in _add_channel
    channel.build_json(upload=True, fallback=self.youtube_meta)
  File "/app/home/src/index/channel.py", line 50, in build_json
    self.process_youtube_meta()
  File "/app/home/src/index/channel.py", line 58, in process_youtube_meta
    self.youtube_meta["thumbnails"].reverse()
KeyError: 'thumbnails'`

Anything else?

No response

@bbilly1
Copy link
Member

bbilly1 commented Jul 19, 2023

I can reproduce that. The channel extraction fails. I think there is something strange going on, yt-dlp detects a wrong channel ID UCf1weKUE9iUaTW7YEgR3qlA which should be UCVpJ6eGdknSR4mlExF1bytA. Probably a music video artist vs producer thing.

Thanks for reporting, will need to see if we can find a work around for that.

@bbilly1 bbilly1 added the bug Something isn't working label Jul 19, 2023
@bbilly1 bbilly1 changed the title [Bug]: Task failed : raised unexpected: KeyError('thumbnails') [Bug]: Task failed : wrong channel ID detected on music video Jul 19, 2023
@hafx
Copy link
Author

hafx commented Sep 5, 2023

No problem thanks to you.

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