diff options
-rwxr-xr-x | artetv_dl/__main__.py | 6 |
1 files changed, 3 insertions, 3 deletions
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: |