From c9edcea2dbcf1750ef8dc7fd7434e9a51ed67738 Mon Sep 17 00:00:00 2001 From: Alexander Weidinger Date: Thu, 26 Nov 2015 23:08:13 +0100 Subject: [PATCH] Fixed typo - thx @MatthiasKohler. --- tudown.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tudown.py b/tudown.py index 023413c..f3e1324 100644 --- a/tudown.py +++ b/tudown.py @@ -30,7 +30,7 @@ def download_files(session, f): else: response = session.head(f[0], allow_redirects=False) if response.status_code == 301: - download_file(session, (response.headers['Location'], f[1])) + download_files(session, (response.headers['Location'], f[1])) elif response.status_code == 200: last_mod_file = getmtime(filename) last_mod_www = timegm(strptime(response.headers['Last-Modified'], '%a, %d %b %Y %H:%M:%S %Z'))