projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
938384c
)
[daum] Fix real video ID extraction
author
Philipp Hagemeister
<phihag@phihag.de>
Tue, 3 Dec 2013 13:16:58 +0000
(14:16 +0100)
committer
Philipp Hagemeister
<phihag@phihag.de>
Tue, 3 Dec 2013 13:16:58 +0000
(14:16 +0100)
youtube_dl/extractor/daum.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/daum.py
b/youtube_dl/extractor/daum.py
index 3d1dcb793627cb2d642c974f689c130faffe9ff1..fe7cfb064cd045cc314675b35cf145ea06fabc44 100644
(file)
--- a/
youtube_dl/extractor/daum.py
+++ b/
youtube_dl/extractor/daum.py
@@
-28,7
+28,8
@@
class DaumIE(InfoExtractor):
video_id = mobj.group(1)
canonical_url = 'http://tvpot.daum.net/v/%s' % video_id
webpage = self._download_webpage(canonical_url, video_id)
- full_id = self._search_regex(r'<link rel="video_src" href=".+?vid=(.+?)"',
+ full_id = self._search_regex(
+ r'<iframe src="http://videofarm.daum.net/controller/video/viewer/Video.html\?.*?vid=(.+?)[&"]',
webpage, u'full id')
query = compat_urllib_parse.urlencode({'vid': full_id})
info = self._download_xml(