hotfix: rename a variable used for extraction of recommended feed
also minor nitpicky comment corrections
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user