mirror of
https://github.com/sigma67/ytmusicapi.git
synced 2026-04-26 07:46:00 +03:00
[GH-ISSUE #161] Search breaks: IndexError: list index out of range #123
Labels
No labels
a/b
bug
documentation
enhancement
good first issue
help wanted
invalid
pull-request
question
wontfix
yt-error
yt-update
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ytmusicapi#123
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @chaos87 on GitHub (Jan 28, 2021).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/161
Hi,
I'm testing version 0.13.1
and when I query 'dinosaur jr'
I'm getting
@sigma67 commented on GitHub (Jan 28, 2021):
I cannot reproduce unfortunately. Can you pinpoint which search result is causing this? Are you using an authenticated instance?
@chaos87 commented on GitHub (Jan 28, 2021):
Thanks for the quick reply.
I'm getting the error with this code
I'm using an unauthenticated instance
@sigma67 commented on GitHub (Jan 28, 2021):
These are my results for that search term, unauthenticated (JSON below). Thumbnails removed for brevity. They might be different from your location. Do you see any unusual songs in your song/video results that don't appear in mine? Unusual would mean that some subtitles are odd or missing. You can check using the web interface if ytmusicapi breaks.
@pushrbx commented on GitHub (Jan 28, 2021):
@sigma67 you can repro the error with https://github.com/sigma67/spotifyplaylist_to_gmusic
As an authenticated user.
@sigma67 commented on GitHub (Jan 28, 2021):
So this one's due to an unavailable song which is missing the typical
Song •.@chaos87 can you confirm that there is also an unavailable song in your search result? Just to make sure it's the same issue.
Edit: If it was the same issue, it should no longer crash with latest master.
@chaos87 commented on GitHub (Jan 29, 2021):
I'm not sure what is an unavailable song or how to identify it. By the past I saw songs results with missing videoId, but the search wouldn't break (and also in 0.13.1).
I can include a more detailed traceback, hope that can help
@sigma67 commented on GitHub (Jan 29, 2021):
At this point it would be most helpful if you could update to master using
pip install -U git+https://github.com/sigma67/ytmusicapiand check if that fixes the issue.Those would be the unavailable ones. I think it's breaking again now because of some other bugfixes made in the meantime, but might also be a YouTube update
@chaos87 commented on GitHub (Jan 29, 2021):
@sigma67 I just tried and yes it solves the issue! Thanks