youtube-dl

Another place where youtube-dl lives on
git clone git://git.oshgnacknak.de/youtube-dl.git
Log | Files | Refs | README | LICENSE

commit bb474376868469b5bcbaed6b1667b752ceba6119
parent 213b715893ce812b4fb14a79634cf7a132a5f2f5
Author: Philipp Hagemeister <phihag@phihag.de>
Date:   Wed, 19 Jun 2013 22:13:16 +0200

Ignore invalid dates (Fixes #894)

Diffstat:
Myoutube_dl/FileDownloader.py | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git 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: