projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
97dae9a
)
[googleplus] Fix upload_date detection
author
Philipp Hagemeister
<phihag@phihag.de>
Sat, 5 Oct 2013 14:38:33 +0000
(16:38 +0200)
committer
Philipp Hagemeister
<phihag@phihag.de>
Sat, 5 Oct 2013 14:38:33 +0000
(16:38 +0200)
youtube_dl/extractor/googleplus.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/googleplus.py
b/youtube_dl/extractor/googleplus.py
index 8895ad2897f8abd30471ba3f7ef07963c44e7b57..ab12d7e9381317b4dfddb679eced39db2f752ed4 100644
(file)
--- 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