diff --git a/youtube_dl/extractor/rtlnow.py b/youtube_dl/extractor/rtlnow.py
index 32541077f..a156666f9 100644
--- a/youtube_dl/extractor/rtlnow.py
+++ b/youtube_dl/extractor/rtlnow.py
@@ -98,14 +98,17 @@ def _real_extract(self,url):
webpage, u'playerdata_url')
playerdata = self._download_webpage(playerdata_url, video_id)
- mobj = re.search(r'
.+?)\s+- (?:Sendung )?vom (?P[0-9]{2})\.(?P[0-9]{2})\.(?:(?P[0-9]{4})|(?P[0-9]{2})) [0-9]{2}:[0-9]{2} Uhr\]\]>', playerdata)
+ mobj = re.search(r'.+?)(?:\s+- (?:Sendung )?vom (?P[0-9]{2})\.(?P[0-9]{2})\.(?:(?P[0-9]{4})|(?P[0-9]{2})) [0-9]{2}:[0-9]{2} Uhr)?\]\]>', playerdata)
if mobj:
video_description = mobj.group(u'description')
if mobj.group('upload_date_Y'):
video_upload_date = mobj.group('upload_date_Y')
- else:
+ elif mobj.group('upload_date_y'):
video_upload_date = u'20' + mobj.group('upload_date_y')
- video_upload_date += mobj.group('upload_date_m')+mobj.group('upload_date_d')
+ else:
+ video_upload_date = None
+ if video_upload_date:
+ video_upload_date += mobj.group('upload_date_m')+mobj.group('upload_date_d')
else:
video_description = None
video_upload_date = None