mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-12-05 15:35:06 +00:00
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:
@@ -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,
|
||||
),
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user