mirror of
https://github.com/morpheus65535/bazarr
synced 2025-01-30 10:51:52 +00:00
WIP
This commit is contained in:
parent
9741ed2b91
commit
106528977a
5 changed files with 337 additions and 332 deletions
|
@ -161,8 +161,7 @@ def sync_episodes():
|
|||
event_stream.write(type='episode', action='insert', series=added_episode['sonarrSeriesId'],
|
||||
episode=added_episode['sonarrEpisodeId'])
|
||||
else:
|
||||
logging.debug('BAZARR unable to insert this episode into the database:',
|
||||
path_replace(added_episode['path']))
|
||||
logging.debug('BAZARR unable to insert this episode into the database:{}'.format(path_replace(added_episode['path'])))
|
||||
|
||||
# Store subtitles for added or modified episodes
|
||||
for i, altered_episode in enumerate(altered_episodes, 1):
|
||||
|
|
|
@ -33,7 +33,6 @@ body {
|
|||
.buttons_bars {
|
||||
position: fixed;
|
||||
top: 60px;
|
||||
width: 100%;
|
||||
z-index: 19; }
|
||||
|
||||
.topbar {
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -30,7 +30,6 @@ body {
|
|||
.buttons_bars {
|
||||
position: fixed;
|
||||
top: 60px;
|
||||
width: 100%;
|
||||
z-index: 19;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<head>
|
||||
<title>{% block title %}Bazarr{% endblock %}</title>
|
||||
|
||||
{% block head_meta %}
|
||||
|
@ -37,8 +37,8 @@
|
|||
href="{{ url_for('static',filename='datatables/buttons.dataTables.min.css') }}">
|
||||
<link rel="stylesheet" type="text/css"
|
||||
href="{{ url_for('static',filename='plugins/datatables.net-bs4/css/dataTables.bootstrap4.min.css') }}">
|
||||
<link rel="stylesheet" href="{{ url_for('static',filename='css/bootstrap-select.css') }}" />
|
||||
<link rel="stylesheet" href="{{ url_for('static',filename='css/jquery.typeahead.min.css') }}" />
|
||||
<link rel="stylesheet" href="{{ url_for('static',filename='css/bootstrap-select.css') }}"/>
|
||||
<link rel="stylesheet" href="{{ url_for('static',filename='css/jquery.typeahead.min.css') }}"/>
|
||||
|
||||
{% endblock head_css %}
|
||||
|
||||
|
@ -61,17 +61,17 @@
|
|||
{% block head_tail %}
|
||||
{% endblock head_tail %}
|
||||
|
||||
</head>
|
||||
<body class="fix-header fix-sidebar card-no-border">
|
||||
<!-- ============================================================== -->
|
||||
<!-- Preloader - style you can find in spinners.css -->
|
||||
<!-- ============================================================== -->
|
||||
<div class="preloader">
|
||||
</head>
|
||||
<body class="fix-header fix-sidebar card-no-border">
|
||||
<!-- ============================================================== -->
|
||||
<!-- Preloader - style you can find in spinners.css -->
|
||||
<!-- ============================================================== -->
|
||||
<div class="preloader">
|
||||
<svg class="circular" viewBox="25 25 50 50">
|
||||
<circle class="path" cx="50" cy="50" r="20" fill="none" stroke-width="2" stroke-miterlimit="10"></circle>
|
||||
</svg>
|
||||
</div>
|
||||
{% block page_body %}
|
||||
</div>
|
||||
{% block page_body %}
|
||||
<!-- ============================================================== -->
|
||||
<!-- Main wrapper - style you can find in pages.scss -->
|
||||
<!-- ============================================================== -->
|
||||
|
@ -117,7 +117,8 @@
|
|||
<div class="typeahead__container">
|
||||
<div class="typeahead__field">
|
||||
<div class="typeahead__query">
|
||||
<input class="form-control text-white js-typeahead" id="search" placeholder="Search..." autocomplete="off">
|
||||
<input class="form-control text-white js-typeahead" id="search"
|
||||
placeholder="Search..." autocomplete="off">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -132,7 +133,9 @@
|
|||
<!-- Profile -->
|
||||
<!-- ============================================================== -->
|
||||
<li class="nav-item">
|
||||
<a class="nav-link text-muted fas fa-heart" href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=XHHRWXT9YB7WE&source=url" target=”_blank”></a>
|
||||
<a class="nav-link text-muted fas fa-heart"
|
||||
href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=XHHRWXT9YB7WE&source=url"
|
||||
target=”_blank”></a>
|
||||
</li>
|
||||
<li class="nav-item dropdown">
|
||||
<a class="nav-link dropdown-toggle text-muted fas fa-user" href=""
|
||||
|
@ -142,7 +145,8 @@
|
|||
<li><a id="restart"><i class="fas fa-redo"></i> Restart</a></li>
|
||||
<li><a id="shutdown"><i class="fas fa-power-off"></i> Shutdown</a></li>
|
||||
{% if settings.auth.type != 'None' %}
|
||||
<li><a href="{{ url_for('logout') }}"><i class="fas fa-sign-out-alt"></i> Logout</a></li>
|
||||
<li><a href="{{ url_for('logout') }}"><i class="fas fa-sign-out-alt"></i> Logout</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
</div>
|
||||
|
@ -186,7 +190,8 @@
|
|||
</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">
|
||||
{% if settings.general.getboolean('use_sonarr') %}
|
||||
<li><a href="{{ url_for('wantedseries') }}"> Series</a></li>
|
||||
|
@ -237,11 +242,11 @@
|
|||
<!-- Bread crumb and right sidebar toggle -->
|
||||
<!-- ============================================================== -->
|
||||
<div id="buttons_bars" class="row page-titles buttons_bars">
|
||||
<div id="buttons_bar_left" class="col-md-5 col-8 align-self-center">
|
||||
<div id="buttons_bar_left" class="col-8 align-self-center">
|
||||
{% block bcleft %}
|
||||
{% endblock bcleft %}
|
||||
</div>
|
||||
<div id="buttons_bar_right" class="col-md-7 col-4 align-self-center">
|
||||
<div id="buttons_bar_right" class="col-4 align-self-center">
|
||||
{% block bcright %}
|
||||
{% endblock bcright %}
|
||||
</div>
|
||||
|
@ -266,10 +271,10 @@
|
|||
<button id="loader_button" class="btn btn-info" onclick="window.location.reload()">Reload</button>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock page_body %}
|
||||
{% endblock page_body %}
|
||||
|
||||
|
||||
{% block tail_js %}
|
||||
{% block tail_js %}
|
||||
|
||||
<!-- ============================================================== -->
|
||||
<!-- All Jquery -->
|
||||
|
@ -302,6 +307,9 @@
|
|||
<script>
|
||||
$(document).ready(function () {
|
||||
BadgesAjax();
|
||||
$(window).on('load resize', function () {
|
||||
$('#buttons_bars').width($('.page-wrapper').width());
|
||||
});
|
||||
|
||||
$('.table').on('draw.dt', function () {
|
||||
$('[data-toggle="tooltip"]').tooltip({html: true});
|
||||
|
@ -312,7 +320,7 @@
|
|||
upgrade: false,
|
||||
reconnection: true,
|
||||
reconnectionDelay: 1000,
|
||||
reconnectionDelayMax : 3000,
|
||||
reconnectionDelayMax: 3000,
|
||||
reconnectionAttempts: 3
|
||||
});
|
||||
|
||||
|
@ -372,7 +380,7 @@
|
|||
}
|
||||
});
|
||||
|
||||
if ( $('#buttons_bar_left').children().length > 0 || $('#buttons_bar_right').children().length > 0 ) {
|
||||
if ($('#buttons_bar_left').children().length > 0 || $('#buttons_bar_right').children().length > 0) {
|
||||
$('#buttons_bars').show();
|
||||
} else {
|
||||
$('#buttons_bars').hide();
|
||||
|
@ -396,11 +404,11 @@
|
|||
});
|
||||
{% endif %}
|
||||
|
||||
$(window).on('beforeunload', function() {
|
||||
$(window).on('beforeunload', function () {
|
||||
events.close();
|
||||
});
|
||||
|
||||
$('#restart').on('click', function() {
|
||||
$('#restart').on('click', function () {
|
||||
$('#loader_button').prop("hidden", true);
|
||||
$('#loader_text').text("Bazarr is restarting, please wait...");
|
||||
$('#reconnect_overlay').show();
|
||||
|
@ -415,13 +423,13 @@
|
|||
function ping() {
|
||||
$.ajax({
|
||||
url: window.location.href,
|
||||
success: function() {
|
||||
success: function () {
|
||||
window.location.reload(true);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
$('#shutdown').on('click', function(){
|
||||
$('#shutdown').on('click', function () {
|
||||
document.open();
|
||||
document.write('Bazarr has shutdown.');
|
||||
document.close();
|
||||
|
@ -431,8 +439,8 @@
|
|||
})
|
||||
});
|
||||
</script>
|
||||
{% endblock tail_js %}
|
||||
{% block tail %}
|
||||
{% endblock tail %}
|
||||
</body>
|
||||
{% endblock tail_js %}
|
||||
{% block tail %}
|
||||
{% endblock tail %}
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in a new issue