]> Raphaƫl G. Git Repositories - youtubedl/blobdiff - youtube_dl/extractor/daum.py
Merge tag 'upstream/2015.06.04.1'
[youtubedl] / youtube_dl / extractor / daum.py
index 45d66e2e663fa376cec8f4fc7931e84006ee30b9..934da765ee700712721281a85dd955c28405001e 100644 (file)
@@ -5,7 +5,7 @@ from __future__ import unicode_literals
 import re
 
 from .common import InfoExtractor
-from ..utils import (
+from ..compat import (
     compat_urllib_parse,
 )
 
@@ -38,7 +38,7 @@ class DaumIE(InfoExtractor):
         canonical_url = 'http://tvpot.daum.net/v/%s' % video_id
         webpage = self._download_webpage(canonical_url, video_id)
         full_id = self._search_regex(
-            r'<iframe src="http://videofarm.daum.net/controller/video/viewer/Video.html\?.*?vid=(.+?)[&"]',
+            r'src=["\']http://videofarm\.daum\.net/controller/video/viewer/Video\.html\?.*?vid=(.+?)[&"\']',
             webpage, 'full id')
         query = compat_urllib_parse.urlencode({'vid': full_id})
         info = self._download_xml(