diff options
author | Philipp Hagemeister <phihag@phihag.de> | 2013-06-19 22:13:16 +0200 |
---|---|---|
committer | Philipp Hagemeister <phihag@phihag.de> | 2013-06-19 22:13:16 +0200 |
commit | bb474376868469b5bcbaed6b1667b752ceba6119 (patch) | |
tree | 5210600db23dd4524c5b4bcc83396325fc613a8e | |
parent | 213b715893ce812b4fb14a79634cf7a132a5f2f5 (diff) |
Ignore invalid dates (Fixes #894)
-rw-r--r-- | youtube_dl/FileDownloader.py | 3 |
1 files changed, 3 insertions, 0 deletions
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: |