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

NoneType errors when indexing favorites lists #414

Closed
corbin-lounsbury opened this issue Oct 1, 2023 · 7 comments
Closed

NoneType errors when indexing favorites lists #414

corbin-lounsbury opened this issue Oct 1, 2023 · 7 comments

Comments

@corbin-lounsbury
Copy link

I get the following error when it tries to index any of the favorites lists in my collection:

2023-10-01T13:31:30.163386741Z Rescheduling Index media from source "corbin-favorites"

2023-10-01T13:31:30.163407604Z Traceback (most recent call last):

2023-10-01T13:31:30.163416932Z   File "/usr/local/lib/python3.11/dist-packages/background_task/tasks.py", line 43, in bg_runner

2023-10-01T13:31:30.163425691Z     func(*args, **kwargs)

2023-10-01T13:31:30.163434459Z   File "/app/sync/tasks.py", line 171, in index_source_task

2023-10-01T13:31:30.163442734Z     key = video.get(source.key_field, None)

2023-10-01T13:31:30.163450866Z           ^^^^^^^^^

2023-10-01T13:31:30.163458868Z AttributeError: 'NoneType' object has no attribute 'get'

2023-10-01T13:31:30.169072875Z Rescheduling task Index media from source "corbin-favorites" for 1:08:21 later at 2023-10-01 14:39:51.168886+00:00

This happens for any user favorites lists. It doesn't appear to be affecting downloads, I still seem to be getting content.

@meeb
Copy link
Owner

meeb commented Oct 2, 2023

This would imply the playlist has no items with metadata being returned. Can you try some of the steps discussed in this issue and see if any of them resolve this for you?

#413

@larryrider
Copy link

Hey, I'm facing the same problem, but on every source list I have (even the public ones). I did some research and it seems to be a Youtube problem, and yt-dlp guys are already fixing it: yt-dlp/yt-dlp#8206

@corbin-lounsbury corbin-lounsbury changed the title NoneTpe errors when indexing favorites lists NoneType errors when indexing favorites lists Oct 2, 2023
@corbin-lounsbury
Copy link
Author

This would imply the playlist has no items with metadata being returned. Can you try some of the steps discussed in this issue and see if any of them resolve this for you?

#413

I confirmed the playlists are not private

Hey, I'm facing the same problem, but on every source list I have (even the public ones). I did some research and it seems to be a Youtube problem, and yt-dlp guys are already fixing it: yt-dlp/yt-dlp#8206

Thanks, will ignore for now and keep a lookout for an update!

@meeb
Copy link
Owner

meeb commented Oct 2, 2023

Thanks for looking it up @larryrider ! Looks likely to be related. I'll sync the yt-dlp update once it's released.

@RichardHyde
Copy link

yt-dlp have released version 2023.10.07 with a fix for this issue

@meeb
Copy link
Owner

meeb commented Oct 8, 2023

Thanks, I'll pull this in and make a release later.

@corbin-lounsbury
Copy link
Author

Pulled the latest release and it looks like it's fixed. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants