|
|
|
@ -598,6 +598,9 @@ def convert(ctx,
|
|
|
|
|
targetMediaDescriptor = currentPattern.getMediaDescriptor(ctx.obj)
|
|
|
|
|
checkUniqueDispositions(context, targetMediaDescriptor)
|
|
|
|
|
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']:
|
|
|
|
|
targetMediaDescriptor.importSubtitles(context['subtitle_directory'],
|
|
|
|
|