This commit is contained in:
Moravčík, Marian 2019-12-29 11:56:34 +01:00
parent 97770462bd
commit a4c1780dff
10 changed files with 299 additions and 214 deletions

1
.gitignore vendored
View file

@ -3,7 +3,6 @@ cachefile.dbm
*.log
*.log.*
*.db
*.pyc
.idea/*
bazarr.pid
/venv

View file

@ -883,13 +883,13 @@ def search_missing_subtitles_movie(no):
redirect(ref)
@app.route('/historyseries')
@app.route('/historyseries/')
# @custom_auth_basic(check_credentials)
def historyseries():
return render_template('historyseries.html')
@app.route('/historymovies')
@app.route('/historymovies/')
# @custom_auth_basic(check_credentials)
def historymovies():
return render_template('historymovies.html')

View file

@ -113,8 +113,7 @@ a.link:hover, a.link:focus {
cursor: pointer; }
.sidebar-nav ul li a.active {
font-weight: 500;
color: #263238;
border-left: 3px solid #ce2829; }
color: #ce2829; }
.sidebar-nav ul li ul {
padding-left: 60px;
padding-top: 10px;
@ -136,7 +135,7 @@ a.link:hover, a.link:focus {
display: block;
margin: 20px 0; }
.sidebar-nav > ul > li {
margin-bottom: 10px; }
margin-bottom: 0px; }
.sidebar-nav > ul > li.active > a {
color: #ce2829;
font-weight: 500;

View file

@ -1,6 +1,6 @@
{
"version": 3,
"mappings": "AAAA;;;;;EAKE;ACLF;;;;;EAKE;AAEM,kFAA0E;AAMlF,gBAAgB;AAiBhB,mBAAmB;AAanB,gBAAgB;AAsChB,gBAAgB;AAQhB,kBAAkB;AASlB,aAAa;AD1FL,iFAAyE;AC2FjF,UAAU;EACN,KAAK,EAAE,IAAI;EACX,MAAM,EAAE,IAAI;EACZ,GAAG,EAAC,GAAG;EACP,QAAQ,EAAE,KAAK;EACf,OAAO,EAAE,KAAK;EACd,UAAU,EAAE,IAAI;EAChB,kCAAuB;IACnB,QAAQ,EAAE,QAAQ;IAClB,GAAG,EAAE,iBAAiB;IACtB,IAAI,EAAE,iBAAiB;;ADxF/B;;oBAEoB;AAEpB,OAAQ;EACN,UAAU,EAXH,OAAO;EAcd,4DAAqD;IACnD,OAAO,EAAE,YA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lVA,OAAO;;AAsVhB,oGAAqG;EACnG,gBAAgB,EAAE,oEAAoE;EACtF,MAAM,EAAE,MAAM;EACd,aAAa,EAAE,CAAC;EAChB,UAAU,EAAE,IAAI;EAChB,KAAK,EAAE,IAAI;;AAKX,gCAAe;EAAE,0CAA0C;EACzD,KAAK,EApWA,OAAO;EAqWZ,OAAO,EAAE,CAAC;EAAE,aAAa;AAG3B,yCAAwB;EAAE,6BAA6B;EACrD,KAAK,EAzWA,OAAO;AA4Wd,0CAAyB;EAAE,oBAAoB;EAC7C,KAAK,EA7WA,OAAO",
"sources": ["../scss/bazarr.scss","../scss/variable.scss"],
"names": [],
"file": "bazarr.css"

View file

@ -153,8 +153,7 @@ a.link {
&.active {
font-weight: 500;
color: $dark;
border-left: 3px solid $topbar;
color: $topbar;
}
}
@ -192,7 +191,7 @@ a.link {
}
> ul > li {
margin-bottom: 10px;
margin-bottom: 0px;
&.active > a {
color: $topbar;

View file

@ -30,7 +30,8 @@
<link href="{{ url_for('static',filename='css/bazarr.css') }}" id="theme" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="{{ url_for('static',filename='datatables/datatables.min.css') }}">
<link rel="stylesheet" type="text/css"
href="{{ url_for('static',filename='plugins/datatables.net-bs4/css/dataTables.bootstrap4.min.css') }}">
{% endblock head_css %}
{% block head %}
@ -102,8 +103,10 @@
<div class="dropdown-menu dropdown-menu-right scale-up">
<ul class="dropdown-user">
<li><a href="{{ url_for('restart') }}"><i class="fas fa-redo"></i> Restart</a></li>
<li><a href="{{ url_for('shutdown') }}"><i class="fas fa-power-off"></i> Shutdown</a></li>
<li><a href="{{ url_for('logout') }}"><i class="fas fa-sign-out-alt"></i> Logout</a></li>
<li><a href="{{ url_for('shutdown') }}"><i class="fas fa-power-off"></i>
Shutdown</a></li>
<li><a href="{{ url_for('logout') }}"><i class="fas fa-sign-out-alt"></i> Logout</a>
</li>
</ul>
</div>
</li>
@ -123,7 +126,7 @@
<!-- Sidebar navigation-->
<nav class="sidebar-nav">
<ul id="sidebarnav">
<li><a class="active" href="{{ url_for('series') }}"><i class="fas fa-play"></i><span
<li><a href="{{ url_for('series') }}"><i class="fas fa-play"></i><span
class="hide-menu"> Series</span></a>
</li>
<li><a href="{{ url_for('movies') }}"><i class="fas fa-film"></i><span
@ -135,7 +138,8 @@
<li><a href="{{ url_for('historymovies') }}"> Movies</a></li>
</ul>
</li>
<li><a href="#"><i class="fas fa-exclamation-triangle"></i><span class="hide-menu"> Wanted</span></a>
<li><a href="#"><i class="fas fa-exclamation-triangle"></i><span
class="hide-menu"> Wanted</span></a>
<ul aria-expanded="false" class="collapse">
<li><a href="/"> Missing</a></li>
<li><a href="/"> Cutoff Unmet</a></li>
@ -191,7 +195,6 @@
<!-- All Jquery -->
<!-- ============================================================== -->
<script src="{{ url_for('static',filename='plugins/jquery/jquery.min.js') }}"></script>
<script src="{{ url_for('static',filename='datatables/jquery.dataTables.min.js') }}"></script>
<!-- Bootstrap tether Core JavaScript -->
<script src="{{ url_for('static',filename='plugins/popper/popper.min.js') }}"></script>
<script src="{{ url_for('static',filename='plugins/bootstrap/js/bootstrap.min.js') }}"></script>
@ -203,6 +206,7 @@
<script src="{{ url_for('static',filename='plugins/sticky-kit-master/dist/sticky-kit.min.js') }}"></script>
<script src="{{ url_for('static',filename='plugins/sparkline/jquery.sparkline.min.js') }}"></script>
<!--Custom JavaScript -->
<script src="{{ url_for('static',filename='plugins/datatables.net-bs4/js/dataTables.bootstrap4.min.js') }}"></script>
<script src="{{ url_for('static',filename='js/custom.js') }}"></script>
<script>

View file

@ -7,35 +7,55 @@
{% endblock head %}
{% block body %}
<table id="history_movies" class="mdl-data-table" style="width:100%">
<thead>
<tr>
<th>action</th>
<th>title</th>
<th>timestamp</th>
<th>description</th>
</tr>
</thead>
</table>
<div class="container-fluid">
<!-- Bread crumb and right sidebar toggle -->
<!-- ============================================================== -->
<div class="row page-titles">
<div class="col-md-5 col-8 align-self-center">
<h3 class="text-themecolor m-b-0 m-t-0"><i class="fas fa-sync"></i></h3>
</div>
<div class="col-md-7 col-4 align-self-center">
<div class="d-flex m-t-10 justify-content-end">
<div class="d-flex m-r-20 m-l-10 hidden-md-down">
<div class="chart-text m-r-10">
<h5 class="m-t-0 text-white">Some page settings</h5></div>
</div>
</div>
</div>
</div>
<!-- ============================================================== -->
<!-- End Bread crumb and right sidebar toggle -->
<!-- ============================================================== -->
<table id="history_movies" class="table table-striped" style="width:100%">
<thead>
<tr>
<th>action</th>
<th>title</th>
<th>timestamp</th>
<th>description</th>
</tr>
</thead>
</table>
</div>
{% endblock body %}
{% block tail %}
<script>
$(document).ready(function() {
var table = $('#history_movies').DataTable( {
"processing": true,
"serverSide": true,
"searching": false,
"ordering": false,
"lengthChange": false,
"ajax": "/api/history_movies",
"columns": [
{ "data": "action" },
{ "data": "title" },
{ "data": "timestamp" },
{ "data": "description" }
]
} );
} );
</script>
<script>
$(document).ready(function () {
var table = $('#history_movies').DataTable({
"processing": true,
"serverSide": true,
"searching": false,
"ordering": false,
"lengthChange": false,
"ajax": "{{ url_for('api.historymovies') }}",
"columns": [
{"data": "action"},
{"data": "title"},
{"data": "timestamp"},
{"data": "description"}
]
});
});
</script>
{% endblock tail %}

View file

@ -7,39 +7,59 @@
{% endblock head %}
{% block body %}
<table id="history_series" class="mdl-data-table" style="width:100%">
<thead>
<tr>
<th>Action</th>
<th>Name</th>
<th>Episode</th>
<th>Episode Title</th>
<th>Date</th>
<th>Description</th>
</tr>
</thead>
</table>
<div class="container-fluid">
<!-- Bread crumb and right sidebar toggle -->
<!-- ============================================================== -->
<div class="row page-titles">
<div class="col-md-5 col-8 align-self-center">
<h3 class="text-themecolor m-b-0 m-t-0"><i class="fas fa-sync"></i></h3>
</div>
<div class="col-md-7 col-4 align-self-center">
<div class="d-flex m-t-10 justify-content-end">
<div class="d-flex m-r-20 m-l-10 hidden-md-down">
<div class="chart-text m-r-10">
<h5 class="m-t-0 text-white">Some page settings</h5></div>
</div>
</div>
</div>
</div>
<!-- ============================================================== -->
<!-- End Bread crumb and right sidebar toggle -->
<!-- ============================================================== -->
<table id="history_series" class="table table-striped" style="width:100%">
<thead>
<tr>
<th>Action</th>
<th>Name</th>
<th>Episode</th>
<th>Episode Title</th>
<th>Date</th>
<th>Description</th>
</tr>
</thead>
</table>
</div>
{% endblock body %}
{% block tail %}
<script>
$(document).ready(function() {
var table = $('#history_series').DataTable( {
"processing": true,
"serverSide": true,
"searching": false,
"ordering": false,
"lengthChange": false,
"ajax": "/api/history_series",
"columns": [
{ "data": "action" },
{ "data": "seriesTitle" },
{ "data": "episode_number" },
{ "data": "episodeTitle" },
{ "data": "timestamp" },
{ "data": "description" }
]
} );
} );
</script>
<script>
$(document).ready(function () {
var table = $('#history_series').DataTable({
"processing": true,
"serverSide": true,
"searching": false,
"ordering": false,
"lengthChange": false,
"ajax": "{{ url_for('api.historyseries') }}",
"columns": [
{"data": "action"},
{"data": "seriesTitle"},
{"data": "episode_number"},
{"data": "episodeTitle"},
{"data": "timestamp"},
{"data": "description"}
]
});
});
</script>
{% endblock tail %}

View file

@ -7,79 +7,103 @@
{% endblock head %}
{% block body %}
<table id="movies" class="mdl-data-table" style="width:100%">
<thead>
<tr>
<th></th>
<th>Name</th>
<th>Exist</th>
<th>Audio Language</th>
<th>Subtitles Languages</th>
<th>Hearing-Impaired</th>
<th>Forced</th>
</tr>
</thead>
</table>
<div class="container-fluid">
<!-- Bread crumb and right sidebar toggle -->
<!-- ============================================================== -->
<div class="row page-titles">
<div class="col-md-5 col-8 align-self-center">
<h3 class="text-themecolor m-b-0 m-t-0"><i class="fas fa-sync"></i></h3>
</div>
<div class="col-md-7 col-4 align-self-center">
<div class="d-flex m-t-10 justify-content-end">
<div class="d-flex m-r-20 m-l-10 hidden-md-down">
<div class="chart-text m-r-10">
<h5 class="m-t-0 text-white">Some page settings</h5></div>
</div>
</div>
</div>
</div>
<!-- ============================================================== -->
<!-- End Bread crumb and right sidebar toggle -->
<!-- ============================================================== -->
<table id="movies" class="table table-striped" style="width:100%">
<thead>
<tr>
<th></th>
<th>Name</th>
<th>Exist</th>
<th>Audio Language</th>
<th>Subtitles Languages</th>
<th>Hearing-Impaired</th>
<th>Forced</th>
</tr>
</thead>
</table>
</div>
{% endblock body %}
{% block tail %}
<script>
$(document).ready(function() {
var table = $('#movies').DataTable( {
"processing": true,
"serverSide": true,
"searching": false,
"ordering": false,
"lengthChange": false,
"ajax": "/api/movies",
"columns": [
{ "data": "monitored",
"render": function ( data, type, row ) {
if (data === 'False') {
return '<i class="far fa-bookmark" data-toggle="tooltip" data-placement="right" title="Movie unmonitored in Radarr"></i>';
} else if (data === 'True') {
return '<i class="fas fa-bookmark" data-toggle="tooltip" data-placement="right" title="Movie monitored in Radarr"></i>';
}
}
},
{ "data": null,
"render": function ( data ) {
if (data.sceneName) {
return '<i class="fas fa-info-circle" data-toggle="tooltip" data-placement="right" title="' + data.sceneName + '"></i> ' + data.title;
} else {
return data.title;
}
}
},
{ "data": "exist",
"render": function ( data ) {
if (data === false) {
return '<i class="fas fa-exclamation-triangle" data-toggle="tooltip" data-placement="right" title="This path doesn\'t seem to be valid."></i>';
} else if (data === true) {
return '<i class="fas fa-check" data-toggle="tooltip" data-placement="right" title="This path seems to be valid."></i>';
}
}
},
{ "data": "audio_language.name" },
{ "data": "languages",
"render": function ( data ) {
if (data !== 'None') {
var languages = '';
data.forEach(appendFunc);
return languages;
} else {
return null
}
<script>
$(document).ready(function () {
var table = $('#movies').DataTable({
"processing": true,
"serverSide": true,
"searching": false,
"ordering": false,
"lengthChange": false,
"ajax": "{{ url_for('api.movies') }}",
"columns": [
{
"data": "monitored",
"render": function (data, type, row) {
if (data === 'False') {
return '<i class="far fa-bookmark" data-toggle="tooltip" data-placement="right" title="Movie unmonitored in Radarr"></i>';
} else if (data === 'True') {
return '<i class="fas fa-bookmark" data-toggle="tooltip" data-placement="right" title="Movie monitored in Radarr"></i>';
}
}
},
{
"data": null,
"render": function (data) {
if (data.sceneName) {
return '<i class="fas fa-info-circle" data-toggle="tooltip" data-placement="right" title="' + data.sceneName + '"></i> ' + data.title;
} else {
return data.title;
}
}
},
{
"data": "exist",
"render": function (data) {
if (data === false) {
return '<i class="fas fa-exclamation-triangle" data-toggle="tooltip" data-placement="right" title="This path doesn\'t seem to be valid."></i>';
} else if (data === true) {
return '<i class="fas fa-check" data-toggle="tooltip" data-placement="right" title="This path seems to be valid."></i>';
}
}
},
{"data": "audio_language.name"},
{
"data": "languages",
"render": function (data) {
if (data !== 'None') {
var languages = '';
data.forEach(appendFunc);
return languages;
} else {
return null
}
function appendFunc(value) {
languages = languages + '<span class="badge badge-secondary" data-toggle="tooltip" data-placement="right" title="'+value.name+'">'+value.code2+'</span> ';
}
}
},
{ "data": "hearing_impaired" },
{ "data": "forced" }
]
} );
} );
</script>
function appendFunc(value) {
languages = languages + '<span class="badge badge-secondary" data-toggle="tooltip" data-placement="right" title="' + value.name + '">' + value.code2 + '</span> ';
}
}
},
{"data": "hearing_impaired"},
{"data": "forced"}
]
});
});
</script>
{% endblock tail %}

View file

@ -7,75 +7,95 @@
{% endblock head %}
{% block body %}
<table id="series" class="mdl-data-table" style="width:100%">
<thead>
<tr>
<th>Name</th>
<th>Exist</th>
<th>Audio Language</th>
<th>Subtitles Languages</th>
<th>Hearing-Impaired</th>
<th>Forced</th>
<th>Subtitles</th>
</tr>
</thead>
</table>
<div class="container-fluid">
<!-- Bread crumb and right sidebar toggle -->
<!-- ============================================================== -->
<div class="row page-titles">
<div class="col-md-5 col-8 align-self-center">
<h3 class="text-themecolor m-b-0 m-t-0"><i class="fas fa-sync"></i></h3>
</div>
<div class="col-md-7 col-4 align-self-center">
<div class="d-flex m-t-10 justify-content-end">
<div class="d-flex m-r-20 m-l-10 hidden-md-down">
<div class="chart-text m-r-10">
<h5 class="m-t-0 text-white">Some page settings</h5></div>
</div>
</div>
</div>
</div>
<table id="series" class="table table-striped" style="width:100%">
<thead>
<tr>
<th>Name</th>
<th>Exist</th>
<th>Audio Language</th>
<th>Subtitles Languages</th>
<th>Hearing-Impaired</th>
<th>Forced</th>
<th>Subtitles</th>
</tr>
</thead>
</table>
</div>
{% endblock body %}
{% block tail %}
<script>
$(document).ready(function() {
var table = $('#series').DataTable( {
"processing": true,
"serverSide": true,
"searching": false,
"ordering": false,
"lengthChange": false,
"ajax": "/api/series",
"columns": [
{ "data": "title" },
{ "data": "exist",
"render": function ( data ) {
if (data === false) {
return '<i class="fas fa-exclamation-triangle" data-toggle="tooltip" data-placement="right" title="This path doesn\'t seem to be valid."></i>';
} else if (data === true) {
return '<i class="fas fa-check" data-toggle="tooltip" data-placement="right" title="This path seems to be valid."></i>';
}
}
},
{ "data": "audio_language.name" },
{ "data": "languages",
"render": function ( data ) {
if (data !== 'None') {
var languages = '';
data.forEach(appendFunc);
return languages;
} else {
return null;
}
<script>
$(document).ready(function () {
var table = $('#series').DataTable({
"processing": true,
"serverSide": true,
"searching": false,
"ordering": false,
"lengthChange": false,
"ajax": "{{ url_for('api.series') }}",
"columns": [
{"data": "title"},
{
"data": "exist",
"render": function (data) {
if (data === false) {
return '<i class="fas fa-exclamation-triangle" data-toggle="tooltip" data-placement="right" title="This path doesn\'t seem to be valid."></i>';
} else if (data === true) {
return '<i class="fas fa-check" data-toggle="tooltip" data-placement="right" title="This path seems to be valid."></i>';
}
}
},
{"data": "audio_language.name"},
{
"data": "languages",
"render": function (data) {
if (data !== 'None') {
var languages = '';
data.forEach(appendFunc);
return languages;
} else {
return null;
}
function appendFunc(value) {
languages = languages + '<span class="badge badge-secondary" data-toggle="tooltip" data-placement="right" title="'+value.name+'">'+value.code2+'</span> ';
}
}
},
{ "data": "hearing_impaired" },
{ "data": "forced" },
{ "data": null,
"render": function ( data ) {
var total = data.episodeFileCount;
var completed = data.episodeFileCount - data.episodeMissingCount;
var completed_style = '';
var completed_text = '';
if (completed/total*100 > 0 && data.languages !== 'None') {
completed_style = ' style="width: '+completed/total*100+'%;"';
completed_text = completed+'/'+total;
}
return '<div class="progress"><div class="progress-bar" role="progressbar"'+completed_style+' aria-valuenow="'+completed+'" aria-valuemin="0" aria-valuemax="'+total+'">'+completed_text+'</div></div>'
}
}
]
} );
} );
</script>
function appendFunc(value) {
languages = languages + '<span class="badge badge-secondary" data-toggle="tooltip" data-placement="right" title="' + value.name + '">' + value.code2 + '</span> ';
}
}
},
{"data": "hearing_impaired"},
{"data": "forced"},
{
"data": null,
"render": function (data) {
var total = data.episodeFileCount;
var completed = data.episodeFileCount - data.episodeMissingCount;
var completed_style = '';
var completed_text = '';
if (completed / total * 100 > 0 && data.languages !== 'None') {
completed_style = ' style="width: ' + completed / total * 100 + '%;"';
completed_text = completed + '/' + total;
}
return '<div class="progress"><div class="progress-bar" role="progressbar"' + completed_style + ' aria-valuenow="' + completed + '" aria-valuemin="0" aria-valuemax="' + total + '">' + completed_text + '</div></div>'
}
}
]
});
});
</script>
{% endblock tail %}