diff options
author | neodarz <neodarz@neodarz.net> | 2018-10-28 22:46:40 +0100 |
---|---|---|
committer | neodarz <neodarz@neodarz.net> | 2018-10-28 22:46:47 +0100 |
commit | 8834b3f7bed45db6304a0a72c5151ee9df1697df (patch) | |
tree | 06459fa13778b4098cf5f4fa6d95780f6c73000b /artetv_dl | |
parent | e065ee9006842e8c0fc784e9862854b5866fa3fd (diff) | |
download | arte.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 '')
-rwxr-xr-x | artetv_dl/__main__.py | 2 |
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) |