|
|
@ -38,11 +38,11 @@
|
|
|
|
{% block bcleft %}
|
|
|
|
{% block bcleft %}
|
|
|
|
<div class="">
|
|
|
|
<div class="">
|
|
|
|
<button class="btn btn-outline">
|
|
|
|
<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>
|
|
|
|
<div class="align-bottom text-themecolor small text-center">Scan Disk</div>
|
|
|
|
</button>
|
|
|
|
</button>
|
|
|
|
<button class="btn btn-outline">
|
|
|
|
<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>
|
|
|
|
<div class="align-bottom text-themecolor small text-center">Search</div>
|
|
|
|
</button>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -51,7 +51,7 @@
|
|
|
|
{% block bcright %}
|
|
|
|
{% block bcright %}
|
|
|
|
<div class="d-flex m-t-5 justify-content-end">
|
|
|
|
<div class="d-flex m-t-5 justify-content-end">
|
|
|
|
<button class="btn btn-outline">
|
|
|
|
<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>
|
|
|
|
<div class="align-bottom text-themecolor small text-center">Edit Series</div>
|
|
|
|
</button>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -245,7 +245,7 @@
|
|
|
|
{"data": "title"},
|
|
|
|
{"data": "title"},
|
|
|
|
{"data": null,
|
|
|
|
{"data": null,
|
|
|
|
"render": function (data) {
|
|
|
|
"render": function (data) {
|
|
|
|
if (data.subtitles !== 'None') {
|
|
|
|
if (data.subtitles !== null) {
|
|
|
|
var languages = '';
|
|
|
|
var languages = '';
|
|
|
|
data.subtitles.forEach(appendFunc);
|
|
|
|
data.subtitles.forEach(appendFunc);
|
|
|
|
return languages;
|
|
|
|
return languages;
|
|
|
@ -264,7 +264,7 @@
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{"data": null,
|
|
|
|
{"data": null,
|
|
|
|
"render": function (data) {
|
|
|
|
"render": function (data) {
|
|
|
|
if (data.missing_subtitles !== 'None') {
|
|
|
|
if (data.missing_subtitles !== null) {
|
|
|
|
var languages = '';
|
|
|
|
var languages = '';
|
|
|
|
data.missing_subtitles.forEach(appendFunc);
|
|
|
|
data.missing_subtitles.forEach(appendFunc);
|
|
|
|
return languages;
|
|
|
|
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 () {
|
|
|
|
$('#uploadModal').on('hidden.bs.modal', function () {
|
|
|
|
$(this).find('form')[0].reset();
|
|
|
|
$(this).find('form')[0].reset();
|
|
|
|
});
|
|
|
|
});
|
|
|
@ -555,7 +569,7 @@
|
|
|
|
$('#seriesFileCount').text(seriesDetails['episodeFileCount'] + ' files');
|
|
|
|
$('#seriesFileCount').text(seriesDetails['episodeFileCount'] + ' files');
|
|
|
|
|
|
|
|
|
|
|
|
var languages = '';
|
|
|
|
var languages = '';
|
|
|
|
if (seriesDetails['languages'] !== 'None') {
|
|
|
|
if (seriesDetails['languages'] !== null) {
|
|
|
|
seriesDetails['languages'].forEach(appendFunc);
|
|
|
|
seriesDetails['languages'].forEach(appendFunc);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|