From: Jaime Marquínez Ferrándiz Date: Mon, 21 Oct 2013 13:00:21 +0000 (+0200) Subject: [googleplus] Fix upload_date extraction X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=685a9cd2f15d4e3b7d18df7ac639e7daf1a84483;p=youtube-dl [googleplus] Fix upload_date extraction --- diff --git a/youtube_dl/extractor/googleplus.py b/youtube_dl/extractor/googleplus.py index ab12d7e93..2570746b2 100644 --- a/youtube_dl/extractor/googleplus.py +++ b/youtube_dl/extractor/googleplus.py @@ -41,9 +41,9 @@ class GooglePlusIE(InfoExtractor): # Extract update date upload_date = self._html_search_regex( - r'''(?x) + r'''(?x) ([0-9]{4}-[0-9]{2}-[0-9]{2})''', - webpage, u'upload date', fatal=False) + webpage, u'upload date', fatal=False, flags=re.VERBOSE) if upload_date: # Convert timestring to a format suitable for filename upload_date = datetime.datetime.strptime(upload_date, "%Y-%m-%d")