Fixed typo - thx @MatthiasKohler.

This commit is contained in:
Alexander Weidinger
2015-11-26 23:08:13 +01:00
parent 45f39707e6
commit c9edcea2db

View File

@@ -30,7 +30,7 @@ def download_files(session, f):
else: else:
response = session.head(f[0], allow_redirects=False) response = session.head(f[0], allow_redirects=False)
if response.status_code == 301: 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: elif response.status_code == 200:
last_mod_file = getmtime(filename) last_mod_file = getmtime(filename)
last_mod_www = timegm(strptime(response.headers['Last-Modified'], '%a, %d %b %Y %H:%M:%S %Z')) last_mod_www = timegm(strptime(response.headers['Last-Modified'], '%a, %d %b %Y %H:%M:%S %Z'))