From e6d32091e11737d5b4f67bef280f926bf829aad8 Mon Sep 17 00:00:00 2001 From: sherl Date: Sat, 27 Sep 2025 20:41:07 +0200 Subject: [PATCH] fix: don't check for plid length playlist ids can be of many lengths (at least 18, 34 and 36) and there doesn't seem to be a rule for how many characters encode a typical (non-mix, video-related) playlist. such validation requires more research. --- ythdd_inv_tl.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ythdd_inv_tl.py b/ythdd_inv_tl.py index cd9ce53..c191803 100644 --- a/ythdd_inv_tl.py +++ b/ythdd_inv_tl.py @@ -886,8 +886,10 @@ def playlists(data, req, only_json: bool = False): plid = data[3] - if len(plid) not in (34, 36): - print("error(playlists): len(plid) is not 34 or 36...!") + # no info about what length can playlists be + # settle for a basic sanity check instead + # if len(plid) not in (18, 34, 36): + if not plid.startswith("PL"): response = {"error": "Only standard playlists are currently supported (no mixes, video-based playlists, etc.)"} if only_json: return response