Fix TypeError: the JSON object must be str, not 'bytes' closed #5

This commit is contained in:
Jesús
2019-07-12 11:37:10 -05:00
parent b219403990
commit 2e85a27bd5

View File

@@ -14,7 +14,7 @@ HD = '&itag=22&local=true'
FIRST = True # skip line loop
VIDEOS = json.loads(REQUEST.content)
VIDEOS = json.loads(REQUEST.content.decode('utf-8'))
for video in VIDEOS:
try: