]> Raphaƫl G. Git Repositories - youtubedl/blobdiff - youtube_dl/extractor/googleplus.py
Update changelog.
[youtubedl] / youtube_dl / extractor / googleplus.py
index f1cd889834dc712d8b3c38478f85e30f2f92e44f..2570746b2047a1d1ae0a60b48970b1414f168e40 100644 (file)
@@ -40,8 +40,10 @@ class GooglePlusIE(InfoExtractor):
         self.report_extraction(video_id)
 
         # Extract update date
-        upload_date = self._html_search_regex('title="Timestamp">(.*?)</a>',
-            webpage, u'upload date', fatal=False)
+        upload_date = self._html_search_regex(
+            r'''(?x)<a.+?class="o-U-s\s[^"]+"\s+style="display:\s*none"\s*>
+                    ([0-9]{4}-[0-9]{2}-[0-9]{2})</a>''',
+            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")