-
Notifications
You must be signed in to change notification settings - Fork 214
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
Error when querying get_home() #668
Comments
ok, I temporarily "solved it" by updating navigation.py from try:
for k in items:
root = root[k]
except (KeyError, IndexError, TypeError) as e:
if none_if_absent:
return None
raise type(e)(f"Unable to find '{k}' using path {items!r} on {root!r}, exception: {e}")
return root to try:
for k in items:
root = root[k]
except (KeyError, IndexError, TypeError) as e:
if none_if_absent:
return None
raise type(e)(f"Unable to find '{k}' using path {items!r} on {root!r}, exception: {e}")
return root but frankly, I still don't think that this shouldn't result in a crash, at best it should be a warning and skip? |
Hi @Batwam
What did your homepage look like? |
Hello, apologies for the delay as it was a bit tricky to troubleshoot. Responding here even though you closed it as I still believe that this is a bug. I tried to progressively increase the get_home(x) value to see at which section if would fail. Turns out to be related to the "Listen Again" category with albums which I believe are manual uploads including tracks which I believe have been deleted... Not sure why they are still getting recommended but turns out that some (albums 2 and 3 below) are empty have a link which is 'https://music.youtube.com/channel/undefined' and lead to nowhere essentially. log below where I'm printing
The part right after the one above is where is starts with what looks like partial data, then fails:
as you can see, it's missing a bunch of fields and eventually crashes, maybe because it's missing |
get_home() query no longer works
Hello, I noticed recently that the script I used to get music suggestions no longer works. The error message isn't very clear so I'm not sure what the issue might be but the script worked a few days ago and also returns results when using something like
yt.search("Oasis Wonderwall")
...To Reproduce
Test Script using get_home ( doesn't work)
Result
Note that I just tried to generate oauth using another account and this appears to work. Also, I just modified navigation.py to print the content of the
root
variable and it does contain data, it even contains keys calledwatchEndpoint
so I'm not 100% sure what the case of the issue is... could it be the some issue with the type of playlists (music Vs videos?)Edit2: I tried using get_home(1) and it worked, then tried again and it no longer work. So perhaps an again issue with the content of the results?
Edit3: using timestamps, I was able to establish that the script does run for a few entries. However, when it lands on some it cannot find the
'watchEndpoint'
key and crashing instead of skipping to the next. Is it possible to continue rather than crashing?The text was updated successfully, but these errors were encountered: