You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
147 lines
4.6 KiB
147 lines
4.6 KiB
{% extends '_main.html' %}
|
|
|
|
{% block title %}Series - Bazarr{% endblock %}
|
|
|
|
{% block head %}
|
|
<style>
|
|
#seriesFanart {
|
|
background-repeat: no-repeat;
|
|
background-size: cover;
|
|
background-position: top center;
|
|
box-sizing: initial;
|
|
margin-left: -32px;
|
|
margin-top: -16px;
|
|
padding: 2em;
|
|
}
|
|
|
|
#seriesDetails {
|
|
padding: 30px;
|
|
background: rgba(0, 0, 0, 0.7);
|
|
color: white;
|
|
margin: -32px;
|
|
}
|
|
|
|
#seriesPoster {
|
|
width: 250px;
|
|
}
|
|
|
|
h1 {
|
|
color: white;
|
|
}
|
|
|
|
span {
|
|
margin-right: 0.5em;
|
|
}
|
|
</style>
|
|
{% endblock head %}
|
|
|
|
{% block body %}
|
|
<div class="container-fluid" id="seriesFanart">
|
|
<div class="row justify-content-md-center" id="seriesDetails">
|
|
<div class="col-sm-auto" id="seriesPosterColumn">
|
|
<img id="seriesPoster" src="">
|
|
</div>
|
|
<div class="col">
|
|
<div class="container-fluid">
|
|
<div class="row">
|
|
<h1><span id="seriesTitle"></span></h1>
|
|
<i class="far fa-clone" id="seriesAlternateTitles" data-toggle="tooltip" data-placement="right"></i>
|
|
</div>
|
|
<div class="row">
|
|
<h5><span id="seriesAudioLanguage" class="badge badge-secondary"></span></h5>
|
|
<h5><span id="seriesMappedPath" class="badge badge-secondary"></span></h5>
|
|
<h5><span id="seriesFileCount" class="badge badge-secondary"></span></h5>
|
|
</div>
|
|
<div class="row">
|
|
<h5><span id="seriesSubtitlesLanguages"></span></h5>
|
|
</div>
|
|
<div class="row">
|
|
<h5><span id="seriesHearingImpaired" class="badge badge-secondary"></span></h5>
|
|
<h5><span id="seriesForced" class="badge badge-secondary"></span></h5>
|
|
</div>
|
|
<div class="row">
|
|
<span id="seriesDescription"></span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="container-fluid">
|
|
<!-- Bread crumb and right sidebar toggle -->
|
|
<!-- ============================================================== -->
|
|
<table id="episodes" class="table table-striped" style="width:100%">
|
|
<thead>
|
|
<tr>
|
|
<th></th>
|
|
<th>Episode</th>
|
|
<th>Title</th>
|
|
<th>Existing Subtitles</th>
|
|
<th>Missing Subtitles</th>
|
|
<th>Manual Search</th>
|
|
<th>Manual Upload</th>
|
|
</tr>
|
|
</thead>
|
|
</table>
|
|
</div>
|
|
{% endblock body %}
|
|
|
|
{% block tail %}
|
|
<script>
|
|
$(document).ready(function () {
|
|
$.ajax({
|
|
url: "{{ url_for('api.series') }}?id={{id}}",
|
|
})
|
|
.done(function( data ) {
|
|
var seriesDetails = data.data[0];
|
|
$('#seriesFanart').css('background-image', "url('{{ url_for('image_proxy', url='MediaCover/'+id+'/fanart.jpg') }}')");
|
|
$('#seriesPoster').attr("src","{{ url_for('image_proxy', url='MediaCover/'+id+'/poster-250.jpg') }}");
|
|
$('#seriesTitle').text(seriesDetails['title']);
|
|
|
|
if (seriesDetails['alternateTitles'].length > 0) {
|
|
$('#seriesAlternateTitles').attr("title", "Alternative Titles:<br>"+seriesDetails['alternateTitles']);
|
|
$('#seriesAlternateTitles').tooltip({html:true});
|
|
} else {
|
|
$('#seriesAlternateTitles').hide();
|
|
}
|
|
|
|
$('#seriesAudioLanguage').text(seriesDetails['audio_language'].name);
|
|
$('#seriesMappedPath').text(seriesDetails['mapped_path']);
|
|
$('#seriesFileCount').text(seriesDetails['episodeFileCount']+' files');
|
|
|
|
var languages = '';
|
|
if (seriesDetails['languages'] !== 'None') {
|
|
seriesDetails['languages'].forEach(appendFunc);
|
|
}
|
|
|
|
function appendFunc(value) {
|
|
languages = languages + '<span class="badge badge-secondary" data-toggle="tooltip" data-placement="right" title="' + value.name + '">' + value.code2 + '</span> ';
|
|
}
|
|
|
|
$('#seriesSubtitlesLanguages').html(languages);
|
|
$('#seriesHearingImpaired').text('Hearing-Impaired: '+seriesDetails['hearing_impaired']);
|
|
$('#seriesForced').text('Forced: '+seriesDetails['forced']);
|
|
$('#seriesDescription').text(seriesDetails['overview']);
|
|
});
|
|
|
|
var table = $('#episodes').DataTable({
|
|
"processing": false,
|
|
"serverSide": true,
|
|
"searching": false,
|
|
"ordering": false,
|
|
"lengthChange": false,
|
|
"responsive": true,
|
|
"ajax": "{{ url_for('api.episodes') }}?id=160",
|
|
"columns": [
|
|
{"data": "monitored"},
|
|
{"data": "episode"},
|
|
{"data": "title"},
|
|
{"data": "subtitles"},
|
|
{"data": "missing_subtitles"},
|
|
{"data": "title"},
|
|
{"data": "title"}
|
|
]
|
|
});
|
|
});
|
|
</script>
|
|
{% endblock tail %}
|