X-Git-Url: http://git.cielonegro.org/gitweb.cgi?a=blobdiff_plain;f=youtube_dl%2FFileDownloader.py;h=f4ce48046f08b21d66fcdecd4e1979cedebfd5dc;hb=01ba4b80a732308e8da66ba89bac9273181db1ad;hp=72f03c217965bcf7227ec6eac544ac30a1b34d79;hpb=8bc7c3d858c9e2dcf6cf65a8306f3ed2bc9109f5;p=youtube-dl.git 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: