This website works better with JavaScript.
Home
Help
Sign In
zolfa
/
youtube-dl
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
1.1k
Wiki
Activity
Browse Source
Ignore invalid dates (
Fixes
#894
)
rtmp_test
Philipp Hagemeister
11 years ago
parent
213b715893
commit
bb47437686
1 changed files
with
3 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+3
-0
youtube_dl/FileDownloader.py
+ 3
- 0
youtube_dl/FileDownloader.py
View File
@ -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
:
Write
Preview
Loading…
Cancel
Save