1
0
mirror of https://github.com/l1ving/youtube-dl synced 2024-12-21 21:43:00 +08:00

[googleplus] Fix upload date extraction

This commit is contained in:
Jaime Marquínez Ferrándiz 2013-09-14 11:10:01 +02:00
parent a921f40799
commit fad84d50fe

View File

@ -40,7 +40,8 @@ class GooglePlusIE(InfoExtractor):
self.report_extraction(video_id)
# Extract update date
upload_date = self._html_search_regex('title="Timestamp">(.*?)</a>',
upload_date = self._html_search_regex(
['title="Timestamp">(.*?)</a>', r'<a.+?class="g-M.+?>(.+?)</a>'],
webpage, u'upload date', fatal=False)
if upload_date:
# Convert timestring to a format suitable for filename