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
+14
View File
@@ -504,6 +504,20 @@ def test_a_3d_video_stays_3d_through_export_and_import(tmp_path: Path) -> None:
assert svc.get_tracks(movie).videos[0].stereo
def test_atmos_without_a_joc_count_stays_atmos_through_export_and_import(tmp_path: Path) -> None:
writer = make_writer(tmp_path)
title = make_title()
title.tracks.audio[0].joc = 0
title.tracks.audio[0].extra = {"atmos": True}
for track in [*title.tracks.videos, *title.tracks.audio]:
writer.record(title, track)
export = written(writer)
assert [row.get("atmos") for row in entry(export)["tracks"] if row["type"] == "audio"] == [True]
svc = ImportService(import_ctx(), "EXAMPLE", "movie-1", str(export))
movie = next(iter(svc.get_titles()))
assert svc.get_tracks(movie).audio[0].atmos
class ProviderService:
ANIME = True
METADATA_PROVIDER = "tmdb"