projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f38de77
)
[metacafe] Fix uploader detection
author
Philipp Hagemeister
<phihag@phihag.de>
Wed, 17 Jul 2013 08:45:24 +0000
(10:45 +0200)
committer
Philipp Hagemeister
<phihag@phihag.de>
Wed, 17 Jul 2013 08:45:24 +0000
(10:45 +0200)
youtube_dl/extractor/metacafe.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/metacafe.py
b/youtube_dl/extractor/metacafe.py
index 94d9ef62f44ece41df5a927f22f7c8b6b4448309..ad41f50eb4b12841dd320f23014e4dc88d860f51 100644
(file)
--- a/
youtube_dl/extractor/metacafe.py
+++ b/
youtube_dl/extractor/metacafe.py
@@
-119,7
+119,9
@@
class MetacafeIE(InfoExtractor):
video_ext = determine_ext(video_url)
video_title = self._html_search_regex(r'(?im)<title>(.*) - Video</title>', webpage, u'title')
- video_uploader = self._html_search_regex(r'submitter=(.*?);|<p class="By">\s*By\s*<a[^>]*>(.*?)</a>', webpage, u'uploader nickname', fatal=False)
+ video_uploader = self._html_search_regex(
+ r'submitter=(.*?);|googletag\.pubads\(\)\.setTargeting\("channel","([^"]+)"\);',
+ webpage, u'uploader nickname', fatal=False)
return [{
'id': video_id,