From e94b783c741b720ab4ee70eb7fc8764be89d63d5 Mon Sep 17 00:00:00 2001 From: Philipp Hagemeister Date: Sat, 5 Oct 2013 16:38:33 +0200 Subject: [PATCH] [googleplus] Fix upload_date detection --- youtube_dl/extractor/googleplus.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.40.0