mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-11-26 19:05:13 +00:00
fix(dl): keep a second file with the same name by moving output placement and the mux step into their own modules
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
"""Tests for ``--merge-video`` track grouping.
|
||||
|
||||
``group_videos_by_variant`` (``unshackle/commands/dl.py``) decides which selected video
|
||||
``group_videos_by_variant`` (``unshackle/core/mux_step.py``) decides which selected video
|
||||
tracks share one MKV when merge mode is on. The rule: group by ``(resolution, range,
|
||||
codec)`` so only language varies within a file; resolutions, ranges and codecs stay
|
||||
separate. With ``merge=False`` every track is its own group (one file per track).
|
||||
@@ -10,7 +10,7 @@ These lock the pure grouping unit; the surrounding mux loop is Click-command orc
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from unshackle.commands.dl import group_videos_by_variant
|
||||
from unshackle.core.mux_step import group_videos_by_variant
|
||||
from unshackle.core.tracks import Video
|
||||
|
||||
|
||||
|
||||
@@ -20,8 +20,9 @@ from pymediainfo import MediaInfo
|
||||
|
||||
from tests.core.test_music_container import fragmented_mp4, header_length
|
||||
from tests.core.test_music_tagger_roundtrip import make_song
|
||||
from unshackle.commands.dl import mux_skipped, no_mux_extension, remux_music_tracks
|
||||
from unshackle.commands.dl import mux_skipped, remux_music_tracks
|
||||
from unshackle.core.config import config
|
||||
from unshackle.core.placement import no_mux_extension
|
||||
from unshackle.core.titles.movie import Movie
|
||||
from unshackle.core.tracks import Audio, Tracks, Video
|
||||
from unshackle.core.utils import tags
|
||||
|
||||
Reference in New Issue
Block a user