invidious icon indicating copy to clipboard operation
invidious copied to clipboard

[Bug] Mix playlists render as -1 videos

Open Fijxu opened this issue 3 months ago • 0 comments

Playlists cataloged as a Mix (which are playlists generated by Youtube) have a video count of -1 video. It should display Mix instead of the quantity of videos the playlist has.

Image

Lines that need to be fixed:

https://github.com/iv-org/invidious/blob/89c8b1b901062c729370370116aa9127a39cd214/src/invidious/yt_backend/extractors.cr#L673-L679

JSON looks like this:

"thumbnailOverlayBadgeViewModel": {
	"thumbnailBadges": [
		{
			"thumbnailBadgeViewModel": {
				"icon": {
					"sources": [
						{
							"clientResource": {
								"imageName": "MIX"
							}
						}
					]
				},
				"text": "Mix", # THIS LINE NEEDS TO BE CONSIDERED
				"badgeStyle": "THUMBNAIL_OVERLAY_BADGE_STYLE_DEFAULT"
			}
		}
	],
	"position": "THUMBNAIL_OVERLAY_BADGE_POSITION_BOTTOM_END"
}

Fijxu avatar Sep 08 '25 00:09 Fijxu