Browse Source

[daum] Fix real video ID extraction

totalwebcasting
Philipp Hagemeister 11 years ago
parent
commit
ce93879a9b
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      youtube_dl/extractor/daum.py

+ 2
- 1
youtube_dl/extractor/daum.py View File

@ -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(


Loading…
Cancel
Save