From 19f1d7fdc83272d6a0227cc72caea57eae832286 Mon Sep 17 00:00:00 2001 From: tech234a <46801700+tech234a@users.noreply.github.com> Date: Sat, 17 Oct 2020 01:54:03 -0400 Subject: [PATCH] youtube-util: bug fix --- youtube_channel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_channel.py b/youtube_channel.py index 93f6750..842ea91 100644 --- a/youtube_channel.py +++ b/youtube_channel.py @@ -88,7 +88,7 @@ def process_channel(channelid: str): # PLAYLISTS data = {"context":{"client":{"hl":"en","gl":"US","clientName":"WEB","clientVersion":API_VERSION}},"browseId":channelid,"params":"EghjaGFubmVscw%3D%3D"} while True: - initdata = mysession.post("https://www.youtube.com/youtubei/v1/browse", params=params, json=data).json() + initdata = mysession.post("https://www.youtube.com/youtubei/v1/browse", params=params, json=data) if initdata.status_code == 200: initdata = initdata.json() break