mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-12-03 06:25:10 +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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user