From 8834b3f7bed45db6304a0a72c5151ee9df1697df Mon Sep 17 00:00:00 2001 From: neodarz Date: Sun, 28 Oct 2018 22:46:40 +0100 Subject: Fix bug with name of the file downloaded This is because the second argument of urlretrieve() is a file path. --- artetv_dl/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'artetv_dl') 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) -- cgit v1.2.1