forked from DRMTalks/devine
Add mapping for Netflix profiles starting with `h264`
e.g., the new -qc profiles.
This commit is contained in:
parent
e5e3f4687d
commit
f4122f1ae6
|
@ -67,7 +67,7 @@ class Video(Track):
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def from_netflix_profile(profile: str) -> Video.Codec:
|
def from_netflix_profile(profile: str) -> Video.Codec:
|
||||||
profile = profile.lower().strip()
|
profile = profile.lower().strip()
|
||||||
if profile.startswith("playready-h264"):
|
if profile.startswith(("h264", "playready-h264")):
|
||||||
return Video.Codec.AVC
|
return Video.Codec.AVC
|
||||||
if profile.startswith("hevc"):
|
if profile.startswith("hevc"):
|
||||||
return Video.Codec.HEVC
|
return Video.Codec.HEVC
|
||||||
|
|
Loading…
Reference in New Issue