소스 검색

remove unnecessary group name

remitamine 10 년 전
부모
커밋
9d681c2bb3
1개의 변경된 파일2개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 3
      youtube_dl/extractor/dcn.py

+ 2 - 3
youtube_dl/extractor/dcn.py

@@ -30,10 +30,9 @@ class DcnIE(InfoExtractor):
             video_id
             video_id
         )
         )
         m3u8_url = self._html_search_regex(
         m3u8_url = self._html_search_regex(
-            r'file: "(?P<m3u8_url>.*?)"',
+            r'file:\s*"([^"]+)',
             webpage,
             webpage,
-            'm3u8_url',
-            group='m3u8_url'
+            'm3u8_url'
         )
         )
         formats = self._extract_m3u8_formats(m3u8_url, video_id)
         formats = self._extract_m3u8_formats(m3u8_url, video_id)
         return {
         return {