Merge pull request #4598 from 0xced/encrypted-age-gate
authorSergey M. <dstftw@gmail.com>
Tue, 30 Dec 2014 11:09:02 +0000 (17:09 +0600)
committerSergey M. <dstftw@gmail.com>
Tue, 30 Dec 2014 11:09:02 +0000 (17:09 +0600)
[youtube] Fix videos with age gate and encrypted signatures

youtube_dl/extractor/daum.py

index c6b813f58ed73e9b08f2584f84288fa821e91688..934da765ee700712721281a85dd955c28405001e 100644 (file)
@@ -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(