diff options
author | James Taylor <user234683@users.noreply.github.com> | 2020-04-04 22:53:49 -0700 |
---|---|---|
committer | James Taylor <user234683@users.noreply.github.com> | 2020-04-04 22:53:49 -0700 |
commit | 4d9d8cec6f7ca18457eec98c4f4894ca4202ae84 (patch) | |
tree | 5b9e5170c2d4090eebbeb44080e1119f853fad2e /youtube/yt_data_extract | |
parent | 5554d5afff3e8bad1d59616c3e9c6f6f7bcd7b1b (diff) | |
download | yt-local-4d9d8cec6f7ca18457eec98c4f4894ca4202ae84.tar.lz yt-local-4d9d8cec6f7ca18457eec98c4f4894ca4202ae84.tar.xz yt-local-4d9d8cec6f7ca18457eec98c4f4894ca4202ae84.zip |
Fix error when there's a video format with mimetype class of 'text'
Diffstat (limited to 'youtube/yt_data_extract')
-rw-r--r-- | youtube/yt_data_extract/watch_extraction.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube/yt_data_extract/watch_extraction.py b/youtube/yt_data_extract/watch_extraction.py index 0b30c91..193b84b 100644 --- a/youtube/yt_data_extract/watch_extraction.py +++ b/youtube/yt_data_extract/watch_extraction.py @@ -294,7 +294,7 @@ def _extract_watch_info_desktop(top_level): return info fmt_type_re = re.compile( - r'(audio|video)/([\w0-9]+); codecs="([\w0-9\.]+(?:, [\w0-9\.]+)*)"') + r'(text|audio|video)/([\w0-9]+); codecs="([\w0-9\.]+(?:, [\w0-9\.]+)*)"') def update_format_with_type_info(fmt, yt_fmt): # 'type' for invidious api format mime_type = multi_get(yt_fmt, 'mimeType', 'type') |