fix(tracks): mark AC-4 Atmos from the HLS ATMOS channels identifier and carry atmos without JOC through signature, export and remote

This commit is contained in:
imSp4rky
2026-12-02 15:43:23 -07:00
parent 3b6bd02e46
commit eeab646272
11 changed files with 154 additions and 9 deletions
+2 -2
View File
@@ -116,7 +116,7 @@ def audio_token(track: Audio) -> str:
channels = track.channels
if isinstance(channels, float):
channels = f"{channels:.1f}"
return f"{codec}{channels or ''}{'atmos' if track.joc else ''}"
return f"{codec}{channels or ''}{'atmos' if track.atmos else ''}"
def quality_parts(tracks: Iterable[AnyTrack]) -> list[str]:
@@ -137,7 +137,7 @@ def quality_parts(tracks: Iterable[AnyTrack]) -> list[str]:
key=lambda a: (
audio_order.index(a.codec) if a.codec else len(audio_order),
-Audio.channel_total(a.channels) if a.channels else 0,
not a.joc,
not a.atmos,
),
)