|
|
|
@ -38,11 +38,11 @@
|
|
|
|
|
{% block bcleft %}
|
|
|
|
|
<div class="">
|
|
|
|
|
<button class="btn btn-outline">
|
|
|
|
|
<div><i class="fas fa-sync align-top text-themecolor text-center font-20" aria-hidden="true"></i></div>
|
|
|
|
|
<div><i class="fas fa-sync align-top text-themecolor text-center font-20" id="scan_button" aria-hidden="true"></i></div>
|
|
|
|
|
<div class="align-bottom text-themecolor small text-center">Scan Disk</div>
|
|
|
|
|
</button>
|
|
|
|
|
<button class="btn btn-outline">
|
|
|
|
|
<div><i class="fas fa-search align-top text-themecolor text-center font-20" aria-hidden="true"></i></div>
|
|
|
|
|
<div><i class="fas fa-search align-top text-themecolor text-center font-20" id="search_button" aria-hidden="true"></i></div>
|
|
|
|
|
<div class="align-bottom text-themecolor small text-center">Search</div>
|
|
|
|
|
</button>
|
|
|
|
|
</div>
|
|
|
|
@ -51,7 +51,7 @@
|
|
|
|
|
{% block bcright %}
|
|
|
|
|
<div class="d-flex m-t-5 justify-content-end">
|
|
|
|
|
<button class="btn btn-outline">
|
|
|
|
|
<div><i class="fas fa-wrench align-top text-themecolor text-center font-20" aria-hidden="true"></i></div>
|
|
|
|
|
<div><i class="fas fa-wrench align-top text-themecolor text-center font-20" id="edit_button" aria-hidden="true"></i></div>
|
|
|
|
|
<div class="align-bottom text-themecolor small text-center">Edit Series</div>
|
|
|
|
|
</button>
|
|
|
|
|
</div>
|
|
|
|
@ -245,7 +245,7 @@
|
|
|
|
|
{"data": "title"},
|
|
|
|
|
{"data": null,
|
|
|
|
|
"render": function (data) {
|
|
|
|
|
if (data.subtitles !== 'None') {
|
|
|
|
|
if (data.subtitles !== null) {
|
|
|
|
|
var languages = '';
|
|
|
|
|
data.subtitles.forEach(appendFunc);
|
|
|
|
|
return languages;
|
|
|
|
@ -264,7 +264,7 @@
|
|
|
|
|
},
|
|
|
|
|
{"data": null,
|
|
|
|
|
"render": function (data) {
|
|
|
|
|
if (data.missing_subtitles !== 'None') {
|
|
|
|
|
if (data.missing_subtitles !== null) {
|
|
|
|
|
var languages = '';
|
|
|
|
|
data.missing_subtitles.forEach(appendFunc);
|
|
|
|
|
return languages;
|
|
|
|
@ -528,6 +528,20 @@
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
$('#scan_button').on('click', function(e){
|
|
|
|
|
e.preventDefault();
|
|
|
|
|
$.ajax({
|
|
|
|
|
url: "{{ url_for('scan_disk', no=id) }}",
|
|
|
|
|
type: 'GET',
|
|
|
|
|
beforeSend: function() {
|
|
|
|
|
$('#scan_button').addClass('fa-spin');
|
|
|
|
|
},
|
|
|
|
|
complete: function() {
|
|
|
|
|
$('#scan_button').removeClass('fa-spin');
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
$('#uploadModal').on('hidden.bs.modal', function () {
|
|
|
|
|
$(this).find('form')[0].reset();
|
|
|
|
|
});
|
|
|
|
@ -555,7 +569,7 @@
|
|
|
|
|
$('#seriesFileCount').text(seriesDetails['episodeFileCount'] + ' files');
|
|
|
|
|
|
|
|
|
|
var languages = '';
|
|
|
|
|
if (seriesDetails['languages'] !== 'None') {
|
|
|
|
|
if (seriesDetails['languages'] !== null) {
|
|
|
|
|
seriesDetails['languages'].forEach(appendFunc);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|