소스 검색

[extractor/generic] Detect DASH manifests in found URLs and extract mpd formats

Sergey M․ 9 년 전
부모
커밋
79a3508579
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      youtube_dl/extractor/generic.py

+ 2 - 0
youtube_dl/extractor/generic.py

@@ -1959,6 +1959,8 @@ class GenericIE(InfoExtractor):
                 return self.playlist_result(self._extract_xspf_playlist(video_url, video_id), video_id)
             elif ext == 'm3u8':
                 entry_info_dict['formats'] = self._extract_m3u8_formats(video_url, video_id, ext='mp4')
+            elif ext == 'mpd':
+                entry_info_dict['formats'] = self._extract_mpd_formats(video_url, video_id)
             else:
                 entry_info_dict['url'] = video_url