mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-11-25 18:35:07 +00:00
fix(ism): signal Dolby Vision and Atmos from Smooth manifests
Init segments now carry dvcC/dvvC with a profile-keyed sample entry and the dby1 brand; track ids cover the manifest URL so per-range ladders stop colliding, and the remote path carries the Atmos flag without inventing a JOC count.
This commit is contained in:
@@ -717,7 +717,7 @@ def extract_manifests(tracks) -> List[Dict[str, Any]]:
|
||||
if not manifest_url or manifest_url in seen:
|
||||
continue
|
||||
|
||||
if track.data.get("dash") and track.data["dash"].get("manifest"):
|
||||
if track.data.get("dash") and track.data["dash"].get("manifest") is not None:
|
||||
seen.add(manifest_url)
|
||||
xml_bytes = etree.tostring(track.data["dash"]["manifest"], xml_declaration=True, encoding="UTF-8")
|
||||
compressed = zlib.compress(xml_bytes, compression_level) if compression_level else xml_bytes
|
||||
@@ -728,7 +728,7 @@ def extract_manifests(tracks) -> List[Dict[str, Any]]:
|
||||
"data": base64.b64encode(compressed).decode("ascii"),
|
||||
}
|
||||
)
|
||||
elif track.data.get("ism") and track.data["ism"].get("manifest"):
|
||||
elif track.data.get("ism") and track.data["ism"].get("manifest") is not None:
|
||||
seen.add(manifest_url)
|
||||
xml_bytes = etree.tostring(track.data["ism"]["manifest"], xml_declaration=True, encoding="UTF-8")
|
||||
compressed = zlib.compress(xml_bytes, compression_level) if compression_level else xml_bytes
|
||||
|
||||
Reference in New Issue
Block a user