summary refs log tree commit diff
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2013-12-03 14:16:58 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2013-12-03 14:16:58 +0100
commitce93879a9b3b1661db3e65ec43649c5b6a08778c (patch)
tree334062acd68ca153f37f9ab456d19069254d408d
parent938384c587c33696bcdb9c28b982e2b744695b3d (diff)
downloadyoutube-dl-ce93879a9b3b1661db3e65ec43649c5b6a08778c.tar.gz
youtube-dl-ce93879a9b3b1661db3e65ec43649c5b6a08778c.tar.xz
youtube-dl-ce93879a9b3b1661db3e65ec43649c5b6a08778c.zip
[daum] Fix real video ID extraction
-rw-r--r--youtube_dl/extractor/daum.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/extractor/daum.py b/youtube_dl/extractor/daum.py
index 3d1dcb793..fe7cfb064 100644
--- 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(