|
|
@ -329,13 +329,13 @@ def convert(ctx,
|
|
|
|
|
|
|
|
|
|
|
|
if context['tmdb']:
|
|
|
|
if context['tmdb']:
|
|
|
|
|
|
|
|
|
|
|
|
tmdbResult = tc.queryTmdb(currentShowDescriptor.getId(), mediaFileProperties.getSeason(), mediaFileProperties.getEpisode())
|
|
|
|
tmdbEpisodeResult = tc.queryEpisode(currentShowDescriptor.getId(), mediaFileProperties.getSeason(), mediaFileProperties.getEpisode())
|
|
|
|
|
|
|
|
|
|
|
|
# click.echo(f"{tmdbResult}")
|
|
|
|
# click.echo(f"{tmdbEpisodeResult}")
|
|
|
|
|
|
|
|
|
|
|
|
if tmdbResult:
|
|
|
|
if tmdbEpisodeResult:
|
|
|
|
fileBasename = tc.getEpisodeFileBasename(currentShowDescriptor.getFilenamePrefix(),
|
|
|
|
fileBasename = tc.getEpisodeFileBasename(currentShowDescriptor.getFilenamePrefix(),
|
|
|
|
tmdbResult['name'],
|
|
|
|
tmdbEpisodeResult['name'],
|
|
|
|
mediaFileProperties.getSeason(),
|
|
|
|
mediaFileProperties.getSeason(),
|
|
|
|
mediaFileProperties.getEpisode(),
|
|
|
|
mediaFileProperties.getEpisode(),
|
|
|
|
currentShowDescriptor.getIndexSeasonDigits(),
|
|
|
|
currentShowDescriptor.getIndexSeasonDigits(),
|
|
|
|