aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/extractor/common.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2022-04-29 21:32:31 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2022-05-01 04:58:38 +0530
commit3fe75fdc803d50820ddf643dc5184c01162451c4 (patch)
tree626c8680a719e0f2177358c132039c8a39f05766 /yt_dlp/extractor/common.py
parent6f7563beb7509aba2f8b1f03fd37e52427dcfecb (diff)
downloadhypervideo-pre-3fe75fdc803d50820ddf643dc5184c01162451c4.tar.lz
hypervideo-pre-3fe75fdc803d50820ddf643dc5184c01162451c4.tar.xz
hypervideo-pre-3fe75fdc803d50820ddf643dc5184c01162451c4.zip
[cleanup] Misc fixes (see desc)
* Do not warn when fixup is skipped for existing file * [fragment] Fix `--skip-unavailable-fragments` for HTTP Errors * [utils] write_string: Fix bug in 59f943cd5097e9bdbc3cb3e6b5675e43d369341a * [utils] parse_codecs: Subtitle codec is generally referred to as `scodec`. https://github.com/yt-dlp/yt-dlp/pull/2174#discussion_r790156048 * [docs] Remove note about permissions. Closes #3597
Diffstat (limited to 'yt_dlp/extractor/common.py')
-rw-r--r--yt_dlp/extractor/common.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/yt_dlp/extractor/common.py b/yt_dlp/extractor/common.py
index 441d8a136..97cd524bc 100644
--- a/yt_dlp/extractor/common.py
+++ b/yt_dlp/extractor/common.py
@@ -2808,7 +2808,7 @@ class InfoExtractor:
content_type = 'video'
elif codecs['acodec'] != 'none':
content_type = 'audio'
- elif codecs.get('tcodec', 'none') != 'none':
+ elif codecs.get('scodec', 'none') != 'none':
content_type = 'text'
elif mimetype2ext(mime_type) in ('tt', 'dfxp', 'ttml', 'xml', 'json'):
content_type = 'text'