logo

youtube-dl

[mirror] Download/Watch videos from video hosters
commit: b85eae0f057a0afdf1da9d6034c19327c8de33cf
parent 28cc2241e44ff0c0704cfffaca6d47d377041aa5
Author: Sergey M․ <dstftw@gmail.com>
Date:   Fri, 14 Jun 2019 01:59:05 +0700

[youtube] Hardcode codec metadata for av01 video only formats (closes #21381)

Diffstat:

Myoutube_dl/extractor/youtube.py6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py @@ -500,6 +500,12 @@ class YoutubeIE(YoutubeBaseInfoExtractor): # RTMP (unnamed) '_rtmp': {'protocol': 'rtmp'}, + + # av01 video only formats sometimes served with "unknown" codecs + '394': {'acodec': 'none', 'vcodec': 'av01.0.05M.08'}, + '395': {'acodec': 'none', 'vcodec': 'av01.0.05M.08'}, + '396': {'acodec': 'none', 'vcodec': 'av01.0.05M.08'}, + '397': {'acodec': 'none', 'vcodec': 'av01.0.05M.08'}, } _SUBTITLE_FORMATS = ('srv1', 'srv2', 'srv3', 'ttml', 'vtt')