Add mapping for Netflix profiles starting with `h264`

e.g., the new -qc profiles.
This commit is contained in:
rlaphoenix 2023-02-28 06:02:36 +00:00
parent e5e3f4687d
commit f4122f1ae6
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ class Video(Track):
@staticmethod
def from_netflix_profile(profile: str) -> Video.Codec:
profile = profile.lower().strip()
if profile.startswith("playready-h264"):
if profile.startswith(("h264", "playready-h264")):
return Video.Codec.AVC
if profile.startswith("hevc"):
return Video.Codec.HEVC