1
0
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:
Johan Andersson 2023-12-10 20:36:26 +01:00
parent 9939298ac8
commit f4932e62e3
2 changed files with 5 additions and 0 deletions

View File

@ -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:

View File

@ -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)