aboutsummaryrefslogtreecommitdiff
path: root/artetv_dl
diff options
context:
space:
mode:
authorneodarz <neodarz@neodarz.net>2018-10-06 18:19:43 +0200
committerneodarz <neodarz@neodarz.net>2018-10-06 18:19:43 +0200
commitcea68677499260a7b83eb5eb2933adf59d9f3180 (patch)
tree2e891429775706a76fc3464065e774be00ce7ace /artetv_dl
parentd8a4c4016ce30c14ef1df4019cdfb7cc89159a20 (diff)
downloadarte.tv-dl-cea68677499260a7b83eb5eb2933adf59d9f3180.tar.xz
arte.tv-dl-cea68677499260a7b83eb5eb2933adf59d9f3180.zip
Fix variable reference
Diffstat (limited to '')
-rwxr-xr-xartetv_dl/__main__.py6
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: