mirror of
https://github.com/morpheus65535/bazarr
synced 2024-12-26 09:37:25 +00:00
Post-processing fine-tuning
This commit is contained in:
parent
167deadc09
commit
b5d56614cf
2 changed files with 6 additions and 4 deletions
|
@ -57,11 +57,13 @@ def path_replace_reverse(path):
|
||||||
return path
|
return path
|
||||||
|
|
||||||
def pp_replace(pp_command, episode, subtitles, language, language_code2, language_code3):
|
def pp_replace(pp_command, episode, subtitles, language, language_code2, language_code3):
|
||||||
|
pp_command = pp_command.replace('{{directory}}', os.path.dirname(episode))
|
||||||
pp_command = pp_command.replace('{{episode}}', 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}}', subtitles)
|
||||||
pp_command = pp_command.replace('{{language}}', language)
|
pp_command = pp_command.replace('{{subtitles_language}}', language)
|
||||||
pp_command = pp_command.replace('{{language_code2}}', language_code2)
|
pp_command = pp_command.replace('{{subtitles_language_code2}}', language_code2)
|
||||||
pp_command = pp_command.replace('{{language_code3}}', language_code3)
|
pp_command = pp_command.replace('{{subtitles_language_code3}}', language_code3)
|
||||||
return pp_command
|
return pp_command
|
||||||
|
|
||||||
result = get_general_settings()
|
result = get_general_settings()
|
||||||
|
|
|
@ -264,7 +264,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="collapsed column">
|
<div class="collapsed column">
|
||||||
<div class="collapsed center aligned column">
|
<div class="collapsed center aligned column">
|
||||||
<div class="ui basic icon" data-tooltip="You can use those variables in your command (include the double curly brace): {{episode}} {{subtitles}} {{language}} {{language-code2}} {{language-code3}}" data-inverted="">
|
<div class="ui basic icon" data-tooltip="You can use those variables in your command (include the double curly brace): \n{{directory}} \n{{episode}} \n{{episode_name}} \n{{subtitles}} \n{{subtitles_language}} \n{{subtitles_language_code2}} \n{{subtitles_language_code3}}" data-inverted="">
|
||||||
<i class="help circle large icon"></i>
|
<i class="help circle large icon"></i>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue