diff options
author | neodarz <neodarz@neodarz.net> | 2018-10-06 18:19:43 +0200 |
---|---|---|
committer | neodarz <neodarz@neodarz.net> | 2018-10-06 18:19:43 +0200 |
commit | cea68677499260a7b83eb5eb2933adf59d9f3180 (patch) | |
tree | 2e891429775706a76fc3464065e774be00ce7ace | |
parent | d8a4c4016ce30c14ef1df4019cdfb7cc89159a20 (diff) | |
download | arte.tv-dl-cea68677499260a7b83eb5eb2933adf59d9f3180.tar.xz arte.tv-dl-cea68677499260a7b83eb5eb2933adf59d9f3180.zip |
Fix variable reference
-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: |