dev
Maveno 11 months ago
parent d84bee74c4
commit 86cc7dfc6f

@ -598,6 +598,9 @@ def convert(ctx,
targetMediaDescriptor = currentPattern.getMediaDescriptor(ctx.obj) targetMediaDescriptor = currentPattern.getMediaDescriptor(ctx.obj)
checkUniqueDispositions(context, targetMediaDescriptor) checkUniqueDispositions(context, targetMediaDescriptor)
currentShowDescriptor = currentPattern.getShowDescriptor(ctx.obj) currentShowDescriptor = currentPattern.getShowDescriptor(ctx.obj)
if len(sourceMediaDescriptor.getTrackDescriptors()) != len(targetMediaDescriptor.getTrackDescriptors()):
raise click.ClickException(f"Number of source streams differs from stored media descriptor")
if context['import_subtitles']: if context['import_subtitles']:
targetMediaDescriptor.importSubtitles(context['subtitle_directory'], targetMediaDescriptor.importSubtitles(context['subtitle_directory'],

@ -557,12 +557,6 @@ class MediaDetailsScreen(Screen):
def action_new_pattern(self): def action_new_pattern(self):
#TODO #427: Fehlermeldung in TUI
# try:
# self.__currentMediaDescriptor.checkConfiguration()
# except ValueError:
# return
selectedShowDescriptor = self.getSelectedShowDescriptor() selectedShowDescriptor = self.getSelectedShowDescriptor()
#HINT: Callback is invoked after this method has exited. As a workaround the callback is executed directly #HINT: Callback is invoked after this method has exited. As a workaround the callback is executed directly

Loading…
Cancel
Save