mirror of
https://github.com/sigma67/ytmusicapi.git
synced 2026-04-25 15:26:01 +03:00
[GH-ISSUE #45] get_artist doesn't return music videos for some artists #34
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#34
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 @grray on GitHub (Jul 15, 2020).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/45
Code to reproduce
doesn't have "videos" section, although youtube music page and android app have it.
@sigma67 commented on GitHub (Jul 15, 2020):
Not quite sure, for me it doesn't have a videos section. I see Albums, Singles, Featured On and Fans Might Also Like. Can you post a screenshot of your page?
@grray commented on GitHub (Jul 15, 2020):
Yes, sure. https://imgur.com/a/1kj7TTk My country is Ukraine.
@grray commented on GitHub (Jul 15, 2020):
It shows the same sections even if I'm not logged in. Its weird, perhaps it's some stupid region restriction, but why then python script on my PC see it differently?
@sigma67 commented on GitHub (Jul 15, 2020):
It might be related to the GL variable configured in context.json. Can you please check your request in browser and report what is used for the GL variable? It should be there in the network tab of your browser under request details.
@grray commented on GitHub (Jul 15, 2020):
I have
gl: UAI tried to change gl in context.json, but it doesn't affect the output, it stays the same. But copying json from browser into context.json solved issue! I found a line, which did the trick, it's"browseId": "UCnX0L9QiftAcWdzeBx31xCw"at json top level.@sigma67 commented on GitHub (Jul 15, 2020):
I don't think it's the browseId, that is being set by ytmusicapi as well. Can you post your full
context.jsonhere?@grray commented on GitHub (Jul 15, 2020):
Oops, i just figured out, that UCnX0L9QiftAcWdzeBx31xCw and UCBQZwaNPFfJ1gZ1fLZpAEGw are two different pages for the same artist and first have videos, while second don't. Don't know whats happening :)
@sigma67 commented on GitHub (Jul 15, 2020):
Yes, seems to be a server-side duplicate. Can we consider this issue resolved?
@grray commented on GitHub (Jul 15, 2020):
Yes, thank you. For your information, first one is Twenty One Pilots - Topic channel on youtube, second is their official channel, and seems like it should be the same for other artists, which have official youtube channels. They have both the same browseId's for albums, so no luck for me here about getting music videos)