remove(tracks): Remove specific service features (#174)

This commit is contained in:
CodeName393
2026-10-30 22:57:03 -06:00
committed by GitHub
parent 7898ff6dd6
commit 23545b6c92
4 changed files with 2 additions and 67 deletions
-9
View File
@@ -89,15 +89,6 @@ class Subtitle(Track):
pass
raise ValueError(f"No MIME types matched any supported Subtitle Codecs in '{codecs}'")
@staticmethod
def from_netflix_profile(profile: str) -> Subtitle.Codec:
profile = profile.lower().strip()
if profile.startswith("webvtt"):
return Subtitle.Codec.WebVTT
if profile.startswith("dfxp"):
return Subtitle.Codec.TimedTextMarkupLang
raise ValueError(f"The Content Profile '{profile}' is not a supported Subtitle Codec")
# WebVTT sanitization patterns (compiled once for performance)
CUE_ID_PATTERN = re.compile(r"^[A-Za-z]+\d+$")
TIMING_START_PATTERN = re.compile(r"^\d+:\d+[:\.]")