aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/googleplus.py
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2013-10-05 16:38:33 +0200
committerPhilipp Hagemeister <phihag@phihag.de>2013-10-05 16:38:33 +0200
commite94b783c741b720ab4ee70eb7fc8764be89d63d5 (patch)
treee4cddcef61fa933211a1565c941238e16c055bca /youtube_dl/extractor/googleplus.py
parent97dae9ae07a1ecd58a412a15162826fde604db60 (diff)
[googleplus] Fix upload_date detection
Diffstat (limited to 'youtube_dl/extractor/googleplus.py')
-rw-r--r--youtube_dl/extractor/googleplus.py3
1 files changed, 2 insertions, 1 deletions
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">(.*?)</a>', r'<a.+?class="g-M.+?>(.+?)</a>'],
+ r'''(?x)<a.+?class="o-T-s\s[^"]+"\s+style="display:\s*none"\s*>
+ ([0-9]{4}-[0-9]{2}-[0-9]{2})</a>''',
webpage, u'upload date', fatal=False)
if upload_date:
# Convert timestring to a format suitable for filename