aboutsummaryrefslogtreecommitdiff
path: root/artetv_dl
diff options
context:
space:
mode:
authorneodarz <neodarz@neodarz.net>2018-10-28 22:46:40 +0100
committerneodarz <neodarz@neodarz.net>2018-10-28 22:46:47 +0100
commit8834b3f7bed45db6304a0a72c5151ee9df1697df (patch)
tree06459fa13778b4098cf5f4fa6d95780f6c73000b /artetv_dl
parente065ee9006842e8c0fc784e9862854b5866fa3fd (diff)
downloadarte.tv-dl-8834b3f7bed45db6304a0a72c5151ee9df1697df.tar.xz
arte.tv-dl-8834b3f7bed45db6304a0a72c5151ee9df1697df.zip
Fix bug with name of the file downloaded
This is because the second argument of urlretrieve() is a file path.
Diffstat (limited to 'artetv_dl')
-rwxr-xr-xartetv_dl/__main__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/artetv_dl/__main__.py b/artetv_dl/__main__.py
index 02bcb9e..814b2f1 100755
--- a/artetv_dl/__main__.py
+++ b/artetv_dl/__main__.py
@@ -35,7 +35,7 @@ def main():
name = json_data['videoJsonPlayer']['VTI']
url = json_data['videoJsonPlayer']['VSR']['HTTPS_SQ_1']['url']
- name=name+".mp4"
+ name=name.replace('/', '-')+".mp4"
try:
print("Downloading '"+name+"'...")
urlretrieve(url, name)