mirror of
https://github.com/sigma67/ytmusicapi.git
synced 2026-04-25 23:36:00 +03:00
[GH-ISSUE #739] song videoIds in get_album(browseid) return video versions instead of the song counterparts #475
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#475
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 @zigzatuzoo on GitHub (Feb 4, 2025).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/739
Describe the bug
When you download a song using the videoId from the get_album function it gets the music video version because the watch id that is returned is the wrong one.
To Reproduce
Lets say SMITHEREENS by Joji
url = 'https://music.youtube.com/playlist?list=OLAK5uy_k3PjxW48IpcnVsPn-AWVoll_mJvV2b6DY'The id we should expect for Glimpse of us is
OkNx2kt0vV0... Instead we getFvOpPeKSf_4You can see this in action if you go to the song link below and click the toggle for Song/Video and watch the URL
https://music.youtube.com/watch?v=OkNx2kt0vV0
@sgvictorino commented on GitHub (Feb 4, 2025):
Try
api.get_playlist(url.split('playlist?list=')[1])instead.@zigzatuzoo commented on GitHub (Feb 4, 2025):
Huh ... That does work ... Weird.
If this is the intended behavior feel free to close the issue ... But I don't see any mention about this behavior in the documentation so I assume it's not.
@sigma67 commented on GitHub (Feb 4, 2025):
@zigzatuzoo do you get the correct ID if you use an authenticated account? Anonymous/non premium accounts prefer video versions
@zigzatuzoo commented on GitHub (Feb 4, 2025):
I'm just running anon. Haven't tried using an account ... I do have a premium account though so I'll try that later when I get the chance.
@sortedcord commented on GitHub (Feb 8, 2025):
@zigzatuzoo I was facing a similar issue where it was only fetching details of the video counterparts of the tracks. As soon as I authenticated with my yt premium account, it automatically switched to the audio versions.
I was specifically looking out for the durations of the items which were significantly longer for the video versions but logging in seems to have rectified this.