projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dea147f
)
Make the Dailymotion uploader regexp more flexible because it fails sometimes
author
Ricardo Garcia
<sarbalap+freshmeat@gmail.com>
Tue, 6 Jul 2010 16:52:46 +0000
(18:52 +0200)
committer
Ricardo Garcia
<sarbalap+freshmeat@gmail.com>
Sun, 31 Oct 2010 10:28:17 +0000
(11:28 +0100)
youtube-dl
patch
|
blob
|
history
diff --git
a/youtube-dl
b/youtube-dl
index 19acce12768543f0ee5f856e820213228356d96e..36f392c838b798eda42799f17e3b76ddd751a216 100755
(executable)
--- a/
youtube-dl
+++ b/
youtube-dl
@@
-1149,7
+1149,7
@@
class DailymotionIE(InfoExtractor):
video_title = mobj.group(1).decode('utf-8')
video_title = sanitize_title(video_title)
- mobj = re.search(r'(?im)<div class="dmco_html owner">
<a class="name" href="/.+
">(.+?)</a></div>', webpage)
+ mobj = re.search(r'(?im)<div class="dmco_html owner">
.*?<a class="name" href="/.+?
">(.+?)</a></div>', webpage)
if mobj is None:
self._downloader.trouble(u'ERROR: unable to extract uploader nickname')
return