This commit is contained in:
Javanaut
2026-04-12 19:09:26 +02:00
parent 0894ac2fab
commit 7926407534
2 changed files with 84 additions and 2 deletions

View File

@@ -585,6 +585,7 @@ def unmux(ctx,
cpu):
from ffx.file_properties import FileProperties
from ffx.process import executeProcess
from ffx.shifted_season_controller import ShiftedSeasonController
from ffx.track_disposition import TrackDisposition
from ffx.track_type import TrackType
@@ -605,6 +606,8 @@ def unmux(ctx,
if create_output_directory and existingSourcePaths and not ctx.obj.get('dry_run', False):
os.makedirs(output_directory, exist_ok=True)
shiftedSeasonController = ShiftedSeasonController(ctx.obj)
for sourcePath in existingSourcePaths:
fp = FileProperties(ctx.obj, sourcePath)
@@ -621,8 +624,12 @@ def unmux(ctx,
currentShowDescriptor,
)
season = fp.getSeason()
episode = fp.getEpisode()
season, episode = shiftedSeasonController.shiftSeason(
fp.getShowId(),
season=fp.getSeason(),
episode=fp.getEpisode(),
patternId=currentPattern.getId() if currentPattern is not None else None,
)
#TODO: Recognition für alle Formate anpassen
targetLabel = label if label else fp.getFileBasename()