From 11c94c757e3fd750a2637cfc46378a8221e74528 Mon Sep 17 00:00:00 2001 From: sherl Date: Fri, 7 Nov 2025 18:45:11 +0100 Subject: [PATCH] fix: don't show playlists in related videos feed items in related feed are now checked by contentType to determine if they are videos or not --- ythdd_inv_tl.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ythdd_inv_tl.py b/ythdd_inv_tl.py index ba8c9b3..b541dbb 100644 --- a/ythdd_inv_tl.py +++ b/ythdd_inv_tl.py @@ -212,8 +212,7 @@ def videos(data): y = safeTraverse(entry, ['lockupViewModel']) if not isinstance(y, dict): continue - is_mix_or_playlist = safeTraverse(entry, ["lockupViewModel", "contentImage", "collectionThumbnailViewModel", "primaryThumbnail", "thumbnailViewModel", "overlays", 0, "thumbnailOverlayBadgeViewModel", "thumbnailBadges", 0, "thumbnailBadgeViewModel", "icon", "sources", 0, "clientResource", "imageName"], default="") in ("MIX", "PLAYLISTS") - if is_mix_or_playlist: + if safeTraverse(y, ["contentType"], default="LOCKUP_CONTENT_TYPE_VIDEO") != "LOCKUP_CONTENT_TYPE_VIDEO": # neither mixes nor playlists are currently supported by the invidious api continue # note: this model is similar, but not identical to the one in ythdd_struct_parser. perhaps they can be both handled in the struct parser some time.