Browse Source

[nuvid] Fix video URL extraction

Sergey M․ 11 năm trước cách đây
mục cha
commit
d0087d4ff2
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      youtube_dl/extractor/nuvid.py

+ 1 - 1
youtube_dl/extractor/nuvid.py

@@ -30,7 +30,7 @@ class NuvidIE(InfoExtractor):
             webpage, 'title').strip()
 
         url_end = self._html_search_regex(
-            r'href="(/mp4/[^"]+)"[^>]*data-link_type="mp4"',
+            r'href="(/[^"]+)"[^>]*data-link_type="mp4"',
             webpage, 'video_url')
         video_url = 'http://m.nuvid.com' + url_end