mirror of
https://github.com/sigma67/ytmusicapi.git
synced 2026-04-25 23:36:00 +03:00
[GH-ISSUE #430] Missing videoType and duration_seconds in unavailable tracks #320
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#320
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 @MishchenkoYuriy on GitHub (Sep 15, 2023).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/430
ytmusicapi version: 1.2.1
Hi,
I was fetching tracks with YTMusic.get_playlist() and I found that all unavailable tracks (
'isAvailable': False) have'videoType': Noneand in some cases missing theduration_seconds. I can still access some of this data with YTMusic.get_song() (musicVideoTypeanddurationSecondsfields).get_playlist:
Is this behaviour intentional?
@sigma67 commented on GitHub (Sep 15, 2023):
Which tracks? Please list search terms. IIRC this information is simply not provided on the website
@MishchenkoYuriy commented on GitHub (Sep 15, 2023):
The
playlist_idof my private playlist won't help you. To replicate this problem you can take thevideoIdfrom my script above, add the track to a new playlist and get the playlist items with YTMusic.get_playlist(). Hope this helps.@sigma67 commented on GitHub (Sep 15, 2023):
So yes, as I mentioned above, YTMusic does not return this data. So there is no way for us to retrieve it.
Check out this playlist: https://music.youtube.com/playlist?list=PLQwVIlKxHM6pdInp9jDol7a2gK17FxEF2
If you hover, there is no Play button nor a duration. In the data the ID is also missing, else it would be parsed correctly.