Browse Source

[googleplus] Fix upload_date detection

rtmp_test
Philipp Hagemeister 11 years ago
parent
commit
e94b783c74
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      youtube_dl/extractor/googleplus.py

+ 2
- 1
youtube_dl/extractor/googleplus.py View File

@ -41,7 +41,8 @@ class GooglePlusIE(InfoExtractor):
# Extract update date # Extract update date
upload_date = self._html_search_regex( 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) webpage, u'upload date', fatal=False)
if upload_date: if upload_date:
# Convert timestring to a format suitable for filename # Convert timestring to a format suitable for filename


Loading…
Cancel
Save