mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-23 19:55:38 +01:00
Add an easier name for dolby vision
This commit is contained in:
parent
9939298ac8
commit
f4932e62e3
@ -160,6 +160,8 @@ def adaptionset(attributes, elements, url, baseurl=None):
|
||||
codec = "h264"
|
||||
elif codecs and codecs[:3] == "hvc":
|
||||
codec = "hevc"
|
||||
elif codecs and codecs[:3] == "dvh":
|
||||
codec = "dvhevc"
|
||||
else:
|
||||
codec = codecs
|
||||
if not resolution and "maxWidth" in i.attrib and "maxHeight" in i.attrib:
|
||||
|
@ -115,6 +115,9 @@ def _hlsparse(config, text, url, output, **kwargs):
|
||||
vcodec = "hevc"
|
||||
if i["CODECS"][:3] == "avc":
|
||||
vcodec = "h264"
|
||||
if i["CODECS"][:3] == "dvh":
|
||||
vcodec = "dvhevc"
|
||||
|
||||
if "AUDIO" in i:
|
||||
audio_group = i["AUDIO"]
|
||||
urls = get_full_url(i["URI"], url)
|
||||
|
Loading…
Reference in New Issue
Block a user