mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-27 13:44:14 +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"
|
codec = "h264"
|
||||||
elif codecs and codecs[:3] == "hvc":
|
elif codecs and codecs[:3] == "hvc":
|
||||||
codec = "hevc"
|
codec = "hevc"
|
||||||
|
elif codecs and codecs[:3] == "dvh":
|
||||||
|
codec = "dvhevc"
|
||||||
else:
|
else:
|
||||||
codec = codecs
|
codec = codecs
|
||||||
if not resolution and "maxWidth" in i.attrib and "maxHeight" in i.attrib:
|
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"
|
vcodec = "hevc"
|
||||||
if i["CODECS"][:3] == "avc":
|
if i["CODECS"][:3] == "avc":
|
||||||
vcodec = "h264"
|
vcodec = "h264"
|
||||||
|
if i["CODECS"][:3] == "dvh":
|
||||||
|
vcodec = "dvhevc"
|
||||||
|
|
||||||
if "AUDIO" in i:
|
if "AUDIO" in i:
|
||||||
audio_group = i["AUDIO"]
|
audio_group = i["AUDIO"]
|
||||||
urls = get_full_url(i["URI"], url)
|
urls = get_full_url(i["URI"], url)
|
||||||
|
Loading…
Reference in New Issue
Block a user