diff options
author | morpheus65535 <[email protected]> | 2018-06-05 20:06:00 -0400 |
---|---|---|
committer | morpheus65535 <[email protected]> | 2018-06-05 20:06:00 -0400 |
commit | 6e4bc1414486968300a56200039658c3998ae4a9 (patch) | |
tree | 882c605b943956c0a0d48b19474ab6c688e0094c /views | |
parent | a40e2031883a00b63417f4cecd50ae43387fae18 (diff) | |
download | bazarr-6e4bc1414486968300a56200039658c3998ae4a9.tar.gz bazarr-6e4bc1414486968300a56200039658c3998ae4a9.zip |
Splitting path substitution for Radarr to address the case where Sonarr and Radarr access files trough the same path.
Diffstat (limited to 'views')
-rw-r--r-- | views/movie.tpl | 4 | ||||
-rw-r--r-- | views/settings.tpl | 80 |
2 files changed, 79 insertions, 5 deletions
diff --git a/views/movie.tpl b/views/movie.tpl index eb34e3941..58a9a3bb4 100644 --- a/views/movie.tpl +++ b/views/movie.tpl @@ -120,11 +120,11 @@ for subtitles_file in subtitles_files: %> <tr> - <td>{{path_replace(subtitles_file[1]) if subtitles_file[1] is not None else 'Video file subtitles track'}}</td> + <td>{{path_replace_movie(subtitles_file[1]) if subtitles_file[1] is not None else 'Video file subtitles track'}}</td> <td><div class="ui tiny inverted label" style='background-color: #777777;'>{{pycountry.languages.lookup(str(subtitles_file[0])).name}}</div></td> <td> %if subtitles_file[1] is not None: - <a class="remove_subtitles ui inverted basic compact icon" data-tooltip="Delete subtitles file from disk" data-inverted="" data-moviePath="{{details[8]}}" data-subtitlesPath="{{path_replace(subtitles_file[1])}}" data-language="{{pycountry.languages.lookup(str(subtitles_file[0])).alpha_3}}" data-radarrId={{details[10]}}> + <a class="remove_subtitles ui inverted basic compact icon" data-tooltip="Delete subtitles file from disk" data-inverted="" data-moviePath="{{details[8]}}" data-subtitlesPath="{{path_replace_movie(subtitles_file[1])}}" data-language="{{pycountry.languages.lookup(str(subtitles_file[0])).alpha_3}}" data-radarrId={{details[10]}}> <i class="ui black delete icon"></i> </a> %end diff --git a/views/settings.tpl b/views/settings.tpl index 584a4a86a..efd310332 100644 --- a/views/settings.tpl +++ b/views/settings.tpl @@ -205,7 +205,7 @@ </div>
</div>
- <div class="ui dividing header">Path Mappings</div>
+ <div class="ui dividing header">Path Mappings for shows</div>
<div class="twelve wide column">
<div class="ui grid">
%import ast
@@ -221,13 +221,13 @@ <div class="two wide column">
<div class="ui fluid input">
<h4 class="ui header">
- Path for Sonarr / Radarr:
+ Path for Sonarr:
</h4>
</div>
</div>
<div class="collapsed column">
<div class="collapsed center aligned column">
- <div class="ui basic icon" data-tooltip="Root path to the directory Sonarr or Radarr accesses." data-inverted="">
+ <div class="ui basic icon" data-tooltip="Root path to the directory Sonarr accesses." data-inverted="">
<i class="help circle large icon"></i>
</div>
</div>
@@ -279,6 +279,80 @@ </div>
</div>
+ <div class="ui dividing header">Path Mappings for movies</div>
+ <div class="twelve wide column">
+ <div class="ui grid">
+ %import ast
+ %if settings_general[16] is not None:
+ % path_substitutions_movie = ast.literal_eval(settings_general[16])
+ %else:
+ % path_substitutions_movie = []
+ %end
+ <div class="middle aligned row">
+ <div class="right aligned four wide column">
+
+ </div>
+ <div class="two wide column">
+ <div class="ui fluid input">
+ <h4 class="ui header">
+ Path for Radarr:
+ </h4>
+ </div>
+ </div>
+ <div class="collapsed column">
+ <div class="collapsed center aligned column">
+ <div class="ui basic icon" data-tooltip="Root path to the directory Radarr accesses." data-inverted="">
+ <i class="help circle large icon"></i>
+ </div>
+ </div>
+ </div>
+ <div class="two wide center aligned column">
+
+ </div>
+ <div class="two wide column">
+ <div class="ui fluid input">
+ <h4 class="ui header">
+ Path for Bazarr:
+ </h4>
+ </div>
+ </div>
+ <div class="collapsed column">
+ <div class="collapsed center aligned column">
+ <div class="ui basic icon" data-tooltip="Path that Bazarr should use to access the same directory remotely." data-inverted="">
+ <i class="help circle large icon"></i>
+ </div>
+ </div>
+ </div>
+ </div>
+ %for x in range(0, 5):
+ % path_movie = []
+ % try:
+ % path_movie = path_substitutions_movie[x]
+ % except IndexError:
+ % path_movie = ["", ""]
+ % end
+ <div class="middle aligned row">
+ <div class="right aligned four wide column">
+
+ </div>
+ <div class="four wide column">
+ <div class="ui fluid input">
+ <input name="settings_general_sourcepath_movie" type="text" value="{{path_movie[0]}}">
+ </div>
+ </div>
+ <div class="center aligned column">
+ <i class="arrow circle right icon"></i>
+ </div>
+ <div class="four wide column">
+ <div class="ui fluid input">
+ <input name="settings_general_destpath_movie" type="text" value="{{path_movie[1]}}">
+ </div>
+ </div>
+ </div>
+ %end
+ </div>
+ </div>
+
<div class="ui dividing header">Post-processing</div>
<div class="twelve wide column">
<div class="ui orange message">
|