X-Git-Url: https://jfr.im/git/yt-dlp.git/blobdiff_plain/3d2623a898196640f7cc0fc8b70118ff19e6925d..61edf57f8f13f6dfd81154174e647eb5fdd26089:/yt_dlp/extractor/hketv.py diff --git a/yt_dlp/extractor/hketv.py b/yt_dlp/extractor/hketv.py index e026996da..bffb6afe0 100644 --- a/yt_dlp/extractor/hketv.py +++ b/yt_dlp/extractor/hketv.py @@ -1,8 +1,7 @@ from .common import InfoExtractor -from ..compat import compat_str from ..utils import ( - clean_html, ExtractorError, + clean_html, int_or_none, merge_dicts, parse_count, @@ -144,7 +143,7 @@ def _real_extract(self, url): if not isinstance(track, dict): continue track_kind = str_or_none(track.get('kind')) - if not track_kind or not isinstance(track_kind, compat_str): + if not track_kind or not isinstance(track_kind, str): continue if track_kind.lower() not in ('captions', 'subtitles'): continue