@ -79,6 +79,7 @@
</head>
<body>
%import ast
%from os import path
%from get_languages import *
%from config import settings
%from helper import path_replace_movie
@ -180,7 +181,11 @@
end
%>
<tr>
<td> { { path_replace_movie ( subtitles_file [ 1 ] ) if subtitles_file [ 1 ] is not None else 'Video File Subtitles Track' } } </td>
%if subtitles_file[1] is not None:
<td><span data-tooltip="Path is: { { path_replace_movie ( subtitles_file [ 1 ] ) } } " data-inverted='' data-position="top left"> { { path . basename ( path_replace_movie ( subtitles_file [ 1 ] ) ) } } </span></td>
%else:
<td>Video File Subtitles Track</td>
%end
<td><div class="ui tiny inverted label" style='background-color: #777777;'> { { language_from_alpha2 ( subtitles_file [ 0 ] . split ( ':' ) [ 0 ] ) } } { { ' forced' if forced else '' } } </div></td>
<td>
%if subtitles_file[1] is not None:
@ -335,16 +340,19 @@
<i class="close icon"></i>
<div class="header">
<span id="movie_title_span"></span>
<br><div class="ui tiny inverted label" style="background-color: #35c5f4;"><span id="movie_path_span"></span></div>
<br><div class="ui tiny inverted label" style="background-color: orange;"><span id="movie_scenename_span"></span></div>
</div>
<div class="scrolling content">
<table id="search_result" class="display" style="width:100%">
<thead>
<tr>
<th style="text-align: left;">Score:</th>
<th style="text-align: left;">Lang uage :</th>
<th style="text-align: left;">H earing- Impaired :</th>
<th style="text-align: left;">Lang . :</th>
<th style="text-align: left;">H I:</th>
<th style="text-align: left;">Provider:</th>
<th style="text-align: left;">Based On:</th>
<th style="text-align: left;">Matching:</th>
<th style="text-align: left;">Subtitles filename:</th>
<th></th>
</tr>
</thead>
@ -513,6 +521,8 @@
$('.manual_search').on('click', function() {
$("#movie_title_span").html($(this).data("movie_title"));
$("#movie_path_span").html($(this).attr("data-moviePath"));
$("#movie_scenename_span").html($(this).attr("data-sceneName"));
moviePath = $(this).attr("data-moviePath");
sceneName = $(this).attr("data-sceneName");
@ -554,6 +564,7 @@
},
drawCallback: function(settings) {
$('.inline.dropdown').dropdown();
$('.ui.accordion').accordion();
},
columns: [
{ data : 'score' ,
@ -602,6 +613,18 @@
},
{ data : null ,
render: function ( data, type, row ) {
const array_release_info = data.release_info;
let i;
let text = '<div class="ui fluid accordion"><div class="title"><i class="dropdown icon"></i>...</div><div class="content">';
for (i = 0; i < array_release_info.length; i++) {
text += '<div class="ui tiny label" style="margin-bottom: 2px;">' + array_release_info[i] + '</div>';
}
text += '</div></div>';
return text;
}
},
{ data : null ,
render: function ( data, type, row ) {
return '<a href="#" class="ui tiny label" onclick="manual_get(this, moviePath, sceneName, hi, radarrId)" data-subtitle="'+data.subtitle+'" data-provider="'+data.provider+'" data-language="'+data.language+'"><i class="ui download icon" style="margin-right:0px" ></i></a>';
}
}