Browse Source

youtube-util: bug fix

pull/11/head
tech234a 3 years ago
parent
commit
19f1d7fdc8
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      youtube_channel.py

+ 1
- 1
youtube_channel.py View File

@@ -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


Loading…
Cancel
Save