From cea68677499260a7b83eb5eb2933adf59d9f3180 Mon Sep 17 00:00:00 2001 From: neodarz Date: Sat, 6 Oct 2018 18:19:43 +0200 Subject: Fix variable reference --- artetv_dl/__main__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'artetv_dl') diff --git a/artetv_dl/__main__.py b/artetv_dl/__main__.py index d85f5f6..02bcb9e 100755 --- a/artetv_dl/__main__.py +++ b/artetv_dl/__main__.py @@ -31,9 +31,9 @@ def main(): url = re.split("\?autostart", url)[0] content = urlopen(url) - json = json.loads(content.read().decode()) - name = json['videoJsonPlayer']['VTI'] - url = json['videoJsonPlayer']['VSR']['HTTPS_SQ_1']['url'] + json_data = json.loads(content.read().decode()) + name = json_data['videoJsonPlayer']['VTI'] + url = json_data['videoJsonPlayer']['VSR']['HTTPS_SQ_1']['url'] name=name+".mp4" try: -- cgit v1.2.1