aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2019-07-12 11:37:10 -0500
committerJesús <heckyel@hyperbola.info>2019-07-12 11:37:10 -0500
commit2e85a27bd50971684bd7000f5ebaae63f257208b (patch)
tree5b03af542a97774ff11ad2ac46bc72f0879e897f
parentb21940399000058259f8d37f1bde5a1bbd3f298f (diff)
downloadlivie-2e85a27bd50971684bd7000f5ebaae63f257208b.tar.lz
livie-2e85a27bd50971684bd7000f5ebaae63f257208b.tar.xz
livie-2e85a27bd50971684bd7000f5ebaae63f257208b.zip
Fix TypeError: the JSON object must be str, not 'bytes' closed #5
-rw-r--r--livie.py2
1 files changed, 1 insertions, 1 deletions
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: