mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-14 15:22:35 +00:00
Ignore invalid dates (Fixes #894)
This commit is contained in:
parent
213b715893
commit
bb47437686
1 changed files with 3 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue