mirror of
https://github.com/sigma67/ytmusicapi.git
synced 2026-04-25 15:26:01 +03:00
[GH-ISSUE #118] Songs duration is off for some of them #82
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#82
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 (Dec 10, 2020).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/118
Searching for this album
The 3rd track shows a duration in milliseconds of 405000, which is 6:45.
But if we go to youtube with the videoId, https://www.youtube.com/watch?v=gOMhN-hfMtY, the video lasts actually 8:08.
Not sure if the problem comes from wrong lengthMs field, or if this is the wrong videoId that is returned in the
get_album@sigma67 commented on GitHub (Dec 10, 2020):
That is not the same song. There's a bunch of different versions for that song, not sure which one you picked.
In either case, this has nothing to do with the project as it just passes data returned by YouTube Music.
@chaos87 commented on GitHub (Dec 10, 2020):
I just picked the videoId returned by the
get_albummethod.The whole json is
I picked the videoId in the 3rd track.
@sigma67 commented on GitHub (Dec 10, 2020):
That is quite strange, because I get a different result when I run the same function call.This is my result for track index 3 from that album, it has the correct videoId:If I run without authenticated headers I get the same result you did. Using authenticated headers, you get the correct videoId (see below). But the lengthMs field always seems to be the length of the actual music track, not the publicly accessible YouTube video.
@chaos87 commented on GitHub (Dec 10, 2020):
ok got it, thanks!