mirror of
https://github.com/sigma67/ytmusicapi.git
synced 2026-04-25 15:26:01 +03:00
[GH-ISSUE #353] Help needed understanding videoType values from get_playlist() #277
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#277
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 @MarkhorDev on GitHub (Feb 18, 2023).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/353
I am using v0.25.0.
I am trying to distinguish between actual songs on YTM and youtube videos that are playable on YTM. In the data returned by get_playlist(), in the tracks, each entry has a "videoType" item, with values such as "MUSIC_VIDEO_TYPE_ATC", "MUSIC_VIDEO_TYPE_ATV", "MUSIC_VIDEO_TYPE_OMV", etc.
I am trying to understand what each of these values represents. Looking at the source code, it seems these values aren't defined by you and instead come from YTM, but I was wondering if you have any understanding of what they mean. I have looked at the YouTube Data API but can't find anything. Any help is appreciated
@sigma67 commented on GitHub (Feb 18, 2023):
Related: https://github.com/sigma67/ytmusicapi/pull/265
Best guess:
Might be a good addition to the FAQ.
@MarkhorDev commented on GitHub (Feb 19, 2023):
I may have misread one of the values because I cannot find ATC anywhere.
OMV does seem to be that, although I think while some songs which have a video attached are showing as OMV, some are not. I will look into this.
I also do not have any guesses as to what ATV stands for.
I also ran into MUSIC_VIDEO_TYPE_OFFICIAL_SOURCE_MUSIC for videos like this. I guess this is for videos which are official video content, but not for a single track.
And both uploaded songs, and invalid songs (i.e videos that cannot be played in YTM but are in a playlist with songs, and songs/videos which have been removed) both have None as their video type. It may be useful to have a value for these which distinguishes the two if this is possible.