Explorar o código

[ted] Skip hls quality selection format

Sergey M․ %!s(int64=10) %!d(string=hai) anos
pai
achega
6621ca39a3
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      youtube_dl/extractor/ted.py

+ 2 - 0
youtube_dl/extractor/ted.py

@@ -198,6 +198,8 @@ class TEDIE(InfoExtractor):
                 hls_formats = self._extract_m3u8_formats(
                     resources.get('stream'), video_name, 'mp4', m3u8_id=format_id)
                 for f in hls_formats:
+                    if f.get('format_id') == 'hls-meta':
+                        continue
                     if not f.get('height'):
                         f['vcodec'] = 'none'
                     else: