From e562d1ee148efc622b254d0be44ecf1ebb70a016 Mon Sep 17 00:00:00 2001 From: sherl Date: Fri, 12 Sep 2025 04:05:56 +0200 Subject: [PATCH] hotfix: rename a variable used for extraction of recommended feed also minor nitpicky comment corrections --- ythdd_inv_tl.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ythdd_inv_tl.py b/ythdd_inv_tl.py index bcb1f14..4efd965 100644 --- a/ythdd_inv_tl.py +++ b/ythdd_inv_tl.py @@ -384,7 +384,7 @@ def videos(data): continue case "lockupViewModel": - y = safeTraverse(x, ['lockupViewModel']) + y = safeTraverse(entry, ['lockupViewModel']) if not isinstance(y, dict): continue isMix = playlist_type = safeTraverse(entry, ["lockupViewModel", "contentImage", "collectionThumbnailViewModel", "primaryThumbnail", "thumbnailViewModel", "overlays", 0, "thumbnailOverlayBadgeViewModel", "thumbnailBadges", 0, "thumbnailBadgeViewModel", "icon", "sources", 0, "clientResource", "imageName"], default="") == "MIX" @@ -560,11 +560,11 @@ def get_channel_tab(requested_tab, ucid, req, only_json: bool = False): # if ctoken is not None and ctoken not in ythdd_globals.general_cache... # unique req fingerprint allows for this exact query to be cached in memory. - # md5 sum serves as a "unique", but deterministic value which can be checked for cache hit/miss + # md5 sum serves as a "unique" deterministic value which can be checked for cache hit/miss unique_request_fingerprint = md5(f"{ucid}_{requested_tab}_{ctoken}".encode('utf-8')).hexdigest() # if we haven't discovered parameters required for browsing a specific tab, - # then koad them now + # then load them now if ucid not in ythdd_globals.general_cache["continuations"]["channels"]: channels(["", "", "", ucid], req, True)