From 2e85a27bd50971684bd7000f5ebaae63f257208b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs?= Date: Fri, 12 Jul 2019 11:37:10 -0500 Subject: Fix TypeError: the JSON object must be str, not 'bytes' closed #5 --- livie.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/livie.py b/livie.py index f2d4fb2..0411b60 100644 --- a/livie.py +++ b/livie.py @@ -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: -- cgit v1.2.3