|
|
|
@ -101,13 +101,13 @@ def pp_replace(pp_command, episode, subtitles, language, language_code2, languag
|
|
|
|
|
pp_command = pp_command.replace('{{directory}}', os.path.dirname(episode))
|
|
|
|
|
pp_command = pp_command.replace('{{episode}}', episode)
|
|
|
|
|
pp_command = pp_command.replace('{{episode_name}}', os.path.splitext(os.path.basename(episode))[0])
|
|
|
|
|
pp_command = pp_command.replace('{{subtitles}}', subtitles)
|
|
|
|
|
pp_command = pp_command.replace('{{subtitles_language}}', language + is_forced_string)
|
|
|
|
|
pp_command = pp_command.replace('{{subtitles_language_code2}}', language_code2 + is_forced)
|
|
|
|
|
pp_command = pp_command.replace('{{subtitles_language_code3}}', language_code3 + is_forced)
|
|
|
|
|
pp_command = pp_command.replace('{{episode_language}}', episode_language)
|
|
|
|
|
pp_command = pp_command.replace('{{episode_language_code2}}', episode_language_code2)
|
|
|
|
|
pp_command = pp_command.replace('{{episode_language_code3}}', episode_language_code3)
|
|
|
|
|
pp_command = pp_command.replace('{{subtitles}}', str(subtitles))
|
|
|
|
|
pp_command = pp_command.replace('{{subtitles_language}}', str(language) + is_forced_string)
|
|
|
|
|
pp_command = pp_command.replace('{{subtitles_language_code2}}', str(language_code2) + is_forced)
|
|
|
|
|
pp_command = pp_command.replace('{{subtitles_language_code3}}', str(language_code3) + is_forced)
|
|
|
|
|
pp_command = pp_command.replace('{{episode_language}}', str(episode_language))
|
|
|
|
|
pp_command = pp_command.replace('{{episode_language_code2}}', str(episode_language_code2))
|
|
|
|
|
pp_command = pp_command.replace('{{episode_language_code3}}', str(episode_language_code3))
|
|
|
|
|
pp_command = pp_command.replace('{{score}}', str(score))
|
|
|
|
|
pp_command = pp_command.replace('{{subtitle_id}}', str(subtitle_id))
|
|
|
|
|
pp_command = pp_command.replace('{{provider}}', str(provider))
|
|
|
|
|