aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/utils.py
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2014-03-21 14:38:37 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2014-03-21 14:38:41 +0100
commit64e7ad6045990f01b250b622b9934035f75da624 (patch)
tree3a9df97a5c06d34d6c91ad94220856c287de5850 /youtube_dl/utils.py
parent23f4a93bb4f8e5e04cdf472e1f18d6da7a07505a (diff)
downloadyoutube-dl-64e7ad6045990f01b250b622b9934035f75da624.tar.xz
[videolectures] (New extractor)
Diffstat (limited to 'youtube_dl/utils.py')
-rw-r--r--youtube_dl/utils.py4
1 files changed, 4 insertions, 0 deletions
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(',', ' ')