mirror of
https://github.com/morpheus65535/bazarr
synced 2025-01-26 00:38:38 +00:00
Improved the scenename in manual search modal if none is provided.
This commit is contained in:
parent
e04e0c75c8
commit
ef8c4a43d4
2 changed files with 14 additions and 7 deletions
|
@ -143,8 +143,8 @@
|
|||
</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<h6>Episode path is: <span id="episode_path_span" class="badge badge-secondary"></span>
|
||||
<br>Scenename is: <span id="episode_scenename_span" class="badge badge-secondary"></span></h6>
|
||||
<h6>Episode path: <span id="episode_path_span" class="badge badge-secondary"></span>
|
||||
<br>Scenename: <span id="episode_scenename_span" class="badge badge-secondary"></span></h6>
|
||||
<div class="container-fluid" style="padding:0px;">
|
||||
<table id="search_result" class="table table-striped" style="width:100%">
|
||||
<thead>
|
||||
|
@ -808,7 +808,11 @@
|
|||
e.preventDefault();
|
||||
$("#series_title_span").html(seriesDetails['title'] + ' - ' + $(this).data("season") + 'x' + $(this).data("episode") + ' - ' + $(this).data("episode_title"));
|
||||
$("#episode_path_span").html($(this).attr("data-episodePath"));
|
||||
$("#episode_scenename_span").html($(this).attr("data-sceneName"));
|
||||
if ($(this).attr("data-sceneName") === 'null') {
|
||||
$("#episode_scenename_span").html('Not provided by Sonarr');
|
||||
} else {
|
||||
$("#episode_scenename_span").html($(this).attr("data-sceneName"));
|
||||
}
|
||||
|
||||
episodePath = $(this).attr("data-episodePath");
|
||||
sceneName = $(this).attr("data-sceneName");
|
||||
|
|
|
@ -140,8 +140,8 @@
|
|||
</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<h6>Movie path is: <span id="movie_path_span" class="badge badge-secondary"></span>
|
||||
<br>Scenename is: <span id="movie_scenename_span" class="badge badge-secondary"></span></h6>
|
||||
<h6>Movie path: <span id="movie_path_span" class="badge badge-secondary"></span>
|
||||
<br>Scenename: <span id="movie_scenename_span" class="badge badge-secondary"></span></h6>
|
||||
<div class="container-fluid" style="padding:0px;">
|
||||
<table id="search_result" class="table table-striped" style="width:100%">
|
||||
<thead>
|
||||
|
@ -581,8 +581,11 @@
|
|||
e.preventDefault();
|
||||
$("#movie_title_span").html(movieDetails['title']);
|
||||
$("#movie_path_span").html(movieDetails['mapped_path']);
|
||||
$("#movie_scenename_span").html(movieDetails['sceneName']);
|
||||
|
||||
if (movieDetails['sceneName'] === null) {
|
||||
$("#movie_scenename_span").html('Not provided by Radarr');
|
||||
} else {
|
||||
$("#movie_scenename_span").html(movieDetails['sceneName']);
|
||||
}
|
||||
moviePath = movieDetails['mapped_path'];
|
||||
sceneName = movieDetails['sceneName'];
|
||||
profileId = movieDetails['profileId'].id;
|
||||
|
|
Loading…
Reference in a new issue