From: Philipp Hagemeister Date: Wed, 19 Jun 2013 20:13:16 +0000 (+0200) Subject: Ignore invalid dates (Fixes #894) X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=bb474376868469b5bcbaed6b1667b752ceba6119;p=youtube-dl Ignore invalid dates (Fixes #894) --- diff --git a/youtube_dl/FileDownloader.py b/youtube_dl/FileDownloader.py index 72f03c217..f4ce48046 100644 --- a/youtube_dl/FileDownloader.py +++ b/youtube_dl/FileDownloader.py @@ -322,6 +322,9 @@ class FileDownloader(object): filetime = timeconvert(timestr) if filetime is None: return filetime + # Ignore obviously invalid dates + if filetime == 0: + return try: os.utime(filename, (time.time(), filetime)) except: