Ver código fonte

[daum] Improve full_id regex

Sergey M․ 10 anos atrás
pai
commit
1c57e7f1f4
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      youtube_dl/extractor/daum.py

+ 1 - 1
youtube_dl/extractor/daum.py

@@ -38,7 +38,7 @@ class DaumIE(InfoExtractor):
         canonical_url = 'http://tvpot.daum.net/v/%s' % video_id
         canonical_url = 'http://tvpot.daum.net/v/%s' % video_id
         webpage = self._download_webpage(canonical_url, video_id)
         webpage = self._download_webpage(canonical_url, video_id)
         full_id = self._search_regex(
         full_id = self._search_regex(
-            r'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')
             webpage, 'full id')
         query = compat_urllib_parse.urlencode({'vid': full_id})
         query = compat_urllib_parse.urlencode({'vid': full_id})
         info = self._download_xml(
         info = self._download_xml(