X-Git-Url: http://git.cielonegro.org/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=youtube_dl%2Futils.py;h=3574fc615c6eb54228c9b07c47ff0499b72333b7;hb=9f5809b3e80674a7d3e4afbfc3e790849cf17cad;hp=7809c4e0b8a4a007d606a0f3cd952c9d9ea430c4;hpb=a1a530b067b36b0233c3a3d1eff61680648acbd9;p=youtube-dl.git diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py index 7809c4e0b..3574fc615 100644 --- a/youtube_dl/utils.py +++ b/youtube_dl/utils.py @@ -763,6 +763,10 @@ class YoutubeDLHandler(compat_urllib_request.HTTPHandler): def unified_strdate(date_str): """Return a string with the date in the format YYYYMMDD""" + + if date_str is None: + return None + upload_date = None #Replace commas date_str = date_str.replace(',', ' ')