From: Philipp Hagemeister Date: Sat, 5 Oct 2013 14:38:33 +0000 (+0200) Subject: [googleplus] Fix upload_date detection X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=e94b783c741b720ab4ee70eb7fc8764be89d63d5;p=youtube-dl [googleplus] Fix upload_date detection --- diff --git a/youtube_dl/extractor/googleplus.py b/youtube_dl/extractor/googleplus.py index 8895ad289..ab12d7e93 100644 --- a/youtube_dl/extractor/googleplus.py +++ b/youtube_dl/extractor/googleplus.py @@ -41,7 +41,8 @@ class GooglePlusIE(InfoExtractor): # Extract update date upload_date = self._html_search_regex( - ['title="Timestamp">(.*?)', r'(.+?)'], + r'''(?x) + ([0-9]{4}-[0-9]{2}-[0-9]{2})''', webpage, u'upload date', fatal=False) if upload_date: # Convert timestring to a format suitable for filename