aboutsummaryrefslogtreecommitdiffstats
path: root/youtube
diff options
context:
space:
mode:
authorJames Taylor <user234683@users.noreply.github.com>2020-04-04 22:53:49 -0700
committerJames Taylor <user234683@users.noreply.github.com>2020-04-04 22:53:49 -0700
commit4d9d8cec6f7ca18457eec98c4f4894ca4202ae84 (patch)
tree5b9e5170c2d4090eebbeb44080e1119f853fad2e /youtube
parent5554d5afff3e8bad1d59616c3e9c6f6f7bcd7b1b (diff)
downloadyt-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')
-rw-r--r--youtube/yt_data_extract/watch_extraction.py2
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')