mirror of https://github.com/morpheus65535/bazarr
Improved the scenename in manual search modal if none is provided.
This commit is contained in:
parent
e04e0c75c8
commit
ef8c4a43d4
|
@ -143,8 +143,8 @@
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<h6>Episode path is: <span id="episode_path_span" class="badge badge-secondary"></span>
|
<h6>Episode path: <span id="episode_path_span" class="badge badge-secondary"></span>
|
||||||
<br>Scenename is: <span id="episode_scenename_span" class="badge badge-secondary"></span></h6>
|
<br>Scenename: <span id="episode_scenename_span" class="badge badge-secondary"></span></h6>
|
||||||
<div class="container-fluid" style="padding:0px;">
|
<div class="container-fluid" style="padding:0px;">
|
||||||
<table id="search_result" class="table table-striped" style="width:100%">
|
<table id="search_result" class="table table-striped" style="width:100%">
|
||||||
<thead>
|
<thead>
|
||||||
|
@ -808,7 +808,11 @@
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
$("#series_title_span").html(seriesDetails['title'] + ' - ' + $(this).data("season") + 'x' + $(this).data("episode") + ' - ' + $(this).data("episode_title"));
|
$("#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_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");
|
episodePath = $(this).attr("data-episodePath");
|
||||||
sceneName = $(this).attr("data-sceneName");
|
sceneName = $(this).attr("data-sceneName");
|
||||||
|
|
|
@ -140,8 +140,8 @@
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<h6>Movie path is: <span id="movie_path_span" class="badge badge-secondary"></span>
|
<h6>Movie path: <span id="movie_path_span" class="badge badge-secondary"></span>
|
||||||
<br>Scenename is: <span id="movie_scenename_span" class="badge badge-secondary"></span></h6>
|
<br>Scenename: <span id="movie_scenename_span" class="badge badge-secondary"></span></h6>
|
||||||
<div class="container-fluid" style="padding:0px;">
|
<div class="container-fluid" style="padding:0px;">
|
||||||
<table id="search_result" class="table table-striped" style="width:100%">
|
<table id="search_result" class="table table-striped" style="width:100%">
|
||||||
<thead>
|
<thead>
|
||||||
|
@ -581,8 +581,11 @@
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
$("#movie_title_span").html(movieDetails['title']);
|
$("#movie_title_span").html(movieDetails['title']);
|
||||||
$("#movie_path_span").html(movieDetails['mapped_path']);
|
$("#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'];
|
moviePath = movieDetails['mapped_path'];
|
||||||
sceneName = movieDetails['sceneName'];
|
sceneName = movieDetails['sceneName'];
|
||||||
profileId = movieDetails['profileId'].id;
|
profileId = movieDetails['profileId'].id;
|
||||||
|
|
Loading…
Reference in New Issue