From: Anton Novosyolov Date: Mon, 2 Jun 2014 09:30:23 +0000 (+0400) Subject: Recognize a third format of the upload_date in the 'watch-uploader-info' element X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=263bd4ec50f9c5ac44062dfbd2f7579177de74e6;p=youtube-dl Recognize a third format of the upload_date in the 'watch-uploader-info' element --- diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py index 981ca62c0..8327fb146 100644 --- a/youtube_dl/extractor/youtube.py +++ b/youtube_dl/extractor/youtube.py @@ -1140,7 +1140,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor, SubtitlesInfoExtractor): mobj = re.search(r'(?s)id="eow-date.*?>(.*?)', video_webpage) if mobj is None: mobj = re.search( - r'(?s)id="watch-uploader-info".*?>.*?(?:Published|Uploaded) on (.*?)', + r'(?s)id="watch-uploader-info".*?>.*?(?:Published|Uploaded|Streamed live) on (.*?)', video_webpage) if mobj is not None: upload_date = ' '.join(re.sub(r'[/,-]', r' ', mobj.group(1)).split())