Continuing development

pull/26/head
Louis Vézina 7 years ago
parent bd2d92a625
commit ec10cdbe82

@ -1,14 +1,17 @@
FROM alpine:latest
FROM lsiobase/alpine.python
EXPOSE 6767
VOLUME /bazarr
WORKDIR /bazarr
VOLUME /tv
# Update
RUN apk add --update python py-pip
RUN apk add --update build-base python-dev py2-pip py-setuptools jpeg-dev zlib-dev git
ADD . /bazarr
#RUN git clone -b development --single-branch https://github.com/morpheus65535/bazarr.git
WORKDIR /bazarr
# Install app dependencies
RUN pip install -r requirements.txt
CMD ["python", "/bazarr/bazarr.py"]
CMD ["python", "bazarr.py"]

Binary file not shown.

@ -63,11 +63,11 @@ def configure_logging():
configure_logging()
@route('/static/:path#.+#', name='static')
@route(base_url + '/static/:path#.+#', name='static')
def static(path):
return static_file(path, root='static')
@route('/image_proxy/<url:path>', method='GET')
@route(base_url + '/image_proxy/<url:path>', method='GET')
def image_proxy(url):
img_pil = Image.open(BytesIO(requests.get(url_sonarr_short + '/' + url).content))
img_buffer = BytesIO()
@ -76,7 +76,7 @@ def image_proxy(url):
img_buffer.seek(0)
return send_file(img_buffer, ctype=img_pil.format)
@route('/')
@route(base_url + '/')
def series():
db = sqlite3.connect('bazarr.db')
db.create_function("path_substitution", 1, path_replace)
@ -86,11 +86,13 @@ def series():
c.execute("SELECT code2, name FROM table_settings_languages WHERE enabled = 1")
languages = c.fetchall()
c.close()
output = template('series', rows=data, languages=languages)
output = template('series', rows=data, languages=languages, base_url=base_url)
return output
@route('/edit_series/<no:int>', method='POST')
@route(base_url + '/edit_series/<no:int>', method='POST')
def edit_series(no):
ref = request.environ['HTTP_REFERER']
lang = request.forms.getall('languages')
if len(lang) > 0:
if lang[0] == '':
@ -114,27 +116,33 @@ def edit_series(no):
list_missing_subtitles(no)
redirect('/')
redirect(ref)
@route('/update_series')
@route(base_url + '/update_series')
def update_series_list():
ref = request.environ['HTTP_REFERER']
update_series()
redirect('/')
redirect(ref)
@route('/update_all_episodes')
@route(base_url + '/update_all_episodes')
def update_all_episodes_list():
ref = request.environ['HTTP_REFERER']
update_all_episodes()
redirect('/')
redirect(ref)
@route('/add_new_episodes')
@route(base_url + '/add_new_episodes')
def add_new_episodes_list():
ref = request.environ['HTTP_REFERER']
add_new_episodes()
redirect('/')
redirect(ref)
@route('/episodes/<no:int>', method='GET')
@route(base_url + '/episodes/<no:int>', method='GET')
def episodes(no):
conn = sqlite3.connect('bazarr.db')
conn.create_function("path_substitution", 1, path_replace)
@ -150,9 +158,9 @@ def episodes(no):
seasons_list.append(list(season))
c.close()
return template('episodes', no=no, details=series_details, seasons=seasons_list, url_sonarr_short=url_sonarr_short)
return template('episodes', no=no, details=series_details, seasons=seasons_list, url_sonarr_short=url_sonarr_short, base_url=base_url)
@route('/scan_disk/<no:int>', method='GET')
@route(base_url + '/scan_disk/<no:int>', method='GET')
def scan_disk(no):
ref = request.environ['HTTP_REFERER']
@ -160,7 +168,7 @@ def scan_disk(no):
redirect(ref)
@route('/search_missing_subtitles/<no:int>', method='GET')
@route(base_url + '/search_missing_subtitles/<no:int>', method='GET')
def search_missing_subtitles(no):
ref = request.environ['HTTP_REFERER']
@ -168,7 +176,7 @@ def search_missing_subtitles(no):
redirect(ref)
@route('/history')
@route(base_url + '/history')
def history():
db = sqlite3.connect('bazarr.db')
c = db.cursor()
@ -186,9 +194,9 @@ def history():
data = c.fetchall()
data = reversed(sorted(data, key=operator.itemgetter(4)))
c.close()
return template('history', rows=data, row_count=row_count, page=page, max_page=max_page)
return template('history', rows=data, row_count=row_count, page=page, max_page=max_page, base_url=base_url)
@route('/wanted')
@route(base_url + '/wanted')
def wanted():
db = sqlite3.connect('bazarr.db')
db.create_function("path_substitution", 1, path_replace)
@ -206,9 +214,9 @@ def wanted():
c.execute("SELECT table_shows.title, table_episodes.season || 'x' || table_episodes.episode, table_episodes.title, table_episodes.missing_subtitles, table_episodes.sonarrSeriesId, path_substitution(table_episodes.path), table_shows.hearing_impaired, table_episodes.sonarrEpisodeId FROM table_episodes INNER JOIN table_shows on table_shows.sonarrSeriesId = table_episodes.sonarrSeriesId WHERE table_episodes.missing_subtitles != '[]' ORDER BY table_episodes._rowid_ DESC LIMIT 15 OFFSET ?", (offset,))
data = c.fetchall()
c.close()
return template('wanted', rows=data, missing_count=missing_count, page=page, max_page=max_page)
return template('wanted', rows=data, missing_count=missing_count, page=page, max_page=max_page, base_url=base_url)
@route('/wanted_search_missing_subtitles')
@route(base_url + '/wanted_search_missing_subtitles')
def wanted_search_missing_subtitles():
ref = request.environ['HTTP_REFERER']
@ -225,7 +233,7 @@ def wanted_search_missing_subtitles():
redirect(ref)
@route('/settings')
@route(base_url + '/settings')
def settings():
db = sqlite3.connect('bazarr.db')
c = db.cursor()
@ -238,10 +246,12 @@ def settings():
c.execute("SELECT * FROM table_settings_sonarr")
settings_sonarr = c.fetchone()
c.close()
return template('settings', settings_general=settings_general, settings_languages=settings_languages, settings_providers=settings_providers, settings_sonarr=settings_sonarr)
return template('settings', settings_general=settings_general, settings_languages=settings_languages, settings_providers=settings_providers, settings_sonarr=settings_sonarr, base_url=base_url)
@route('/save_settings', method='POST')
@route(base_url + '/save_settings', method='POST')
def save_settings():
ref = request.environ['HTTP_REFERER']
conn = sqlite3.connect('bazarr.db')
c = conn.cursor()
@ -278,9 +288,9 @@ def save_settings():
conn.commit()
c.close()
redirect('/settings')
redirect(ref)
@route('/system')
@route(base_url + '/system')
def system():
db = sqlite3.connect('bazarr.db')
c = db.cursor()
@ -292,9 +302,9 @@ def system():
for line in reversed(open('bazarr.log').readlines()):
logs.append(line.rstrip())
return template('system', tasks=tasks, logs=logs)
return template('system', tasks=tasks, logs=logs, base_url=base_url)
@route('/remove_subtitles', method='POST')
@route(base_url + '/remove_subtitles', method='POST')
def remove_subtitles():
episodePath = request.forms.get('episodePath')
language = request.forms.get('language')
@ -311,7 +321,7 @@ def remove_subtitles():
store_subtitles(episodePath)
list_missing_subtitles(sonarrSeriesId)
@route('/get_subtitle', method='POST')
@route(base_url + '/get_subtitle', method='POST')
def get_subtitle():
ref = request.environ['HTTP_REFERER']

@ -16,6 +16,8 @@ db.close()
ip = general_settings[0]
port = general_settings[1]
base_url = general_settings[2]
if base_url.endswith('/'):
base_url = base_url[:-1]
if general_settings[3] is None:
path_mappings = []
else:

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

@ -3,6 +3,7 @@ bottle
bottle-fdsend
dogpile.cache
enzyme
Pillow
py-pretty
pycountry
requests

Binary file not shown.

@ -1,25 +1,25 @@
<html>
<head>
<!DOCTYPE html>
<script src="/static/jquery/jquery-latest.min.js"></script>
<script src="/static/semantic/semantic.min.js"></script>
<script src="/static/jquery/tablesort.js"></script>
<link rel="stylesheet" href="/static/semantic/semantic.min.css">
<script src="{{base_url}}/static/jquery/jquery-latest.min.js"></script>
<script src="{{base_url}}/static/semantic/semantic.min.js"></script>
<script src="{{base_url}}/static/jquery/tablesort.js"></script>
<link rel="stylesheet" href="{{base_url}}/static/semantic/semantic.min.css">
<link rel="apple-touch-icon" sizes="120x120" href="/static/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/static/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/static/favicon-16x16.png">
<link rel="manifest" href="/static/manifest.json">
<link rel="mask-icon" href="/static/safari-pinned-tab.svg" color="#5bbad5">
<link rel="shortcut icon" href="/static/favicon.ico">
<meta name="msapplication-config" content="/static/browserconfig.xml">
<link rel="apple-touch-icon" sizes="120x120" href="{{base_url}}/static/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="{{base_url}}/static/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="{{base_url}}/static/favicon-16x16.png">
<link rel="manifest" href="{{base_url}}/static/manifest.json">
<link rel="mask-icon" href="{{base_url}}/static/safari-pinned-tab.svg" color="#5bbad5">
<link rel="shortcut icon" href="{{base_url}}/static/favicon.ico">
<meta name="msapplication-config" content="{{base_url}}/static/browserconfig.xml">
<meta name="theme-color" content="#ffffff">
<title>{{details[0]}} - Bazarr</title>
<style>
body {
background-color: #1b1c1d;
background-image: url("/image_proxy{{details[3]}}");
background-image: url("{{base_url}}/image_proxy{{details[3]}}");
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
@ -76,31 +76,31 @@
%import ast
%import pycountry
%from get_general_settings import *
<div style="display: none;"><img src="/image_proxy{{details[3]}}"></div>
<div style="display: none;"><img src="{{base_url}}/image_proxy{{details[3]}}"></div>
<div id='loader' class="ui page dimmer">
<div class="ui indeterminate text loader">Loading...</div>
</div>
<div id="divmenu" class="ui container">
<div style="background-color:#272727;" class="ui inverted borderless labeled icon huge menu five item">
<a href="/"><img style="margin-right:32px;" class="logo" src="/static/logo128.png"></a>
<a href="{{base_url}}/"><img style="margin-right:32px;" class="logo" src="{{base_url}}/static/logo128.png"></a>
<div style="height:80px;" class="ui container">
<a class="item" href="/">
<a class="item" href="{{base_url}}/">
<i class="play icon"></i>
Series
</a>
<a class="item" href="/history">
<a class="item" href="{{base_url}}/history">
<i class="wait icon"></i>
History
</a>
<a class="item" href="/wanted">
<a class="item" href="{{base_url}}/wanted">
<i class="warning sign icon"></i>
Wanted
</a>
<a class="item" href="/settings">
<a class="item" href="{{base_url}}/settings">
<i class="settings icon"></i>
Settings
</a>
<a class="item" href="/system">
<a class="item" href="{{base_url}}/system">
<i class="laptop icon"></i>
System
</a>
@ -110,7 +110,7 @@
<div style='padding-left: 2em; padding-right: 2em;' class='ui container'>
<div id="divdetails" class="ui container">
<img class="left floated ui image" src="/image_proxy{{details[2]}}">
<img class="left floated ui image" src="{{base_url}}/image_proxy{{details[2]}}">
<div class="ui right floated inverted basic buttons">
<button id="scan_disk" class="ui button"><i class="refresh icon"></i>Scan disk for subtitles</button>
<button id="search_missing_subtitles" class="ui button"><i class="download icon"></i>Download missing subtitles</button>
@ -193,11 +193,11 @@
<script>
$('#scan_disk').click(function(){
window.location = '/scan_disk/{{no}}';
window.location = '{{base_url}}/scan_disk/{{no}}';
})
$('#search_missing_subtitles').click(function(){
window.location = '/search_missing_subtitles/{{no}}';
window.location = '{{base_url}}/search_missing_subtitles/{{no}}';
})
$('.remove_subtitles').click(function(){
@ -209,7 +209,7 @@
sonarrEpisodeId: $(this).attr("data-sonarrEpisodeId")
};
$.ajax({
url: "/remove_subtitles",
url: "{{base_url}}/remove_subtitles",
type: "POST",
dataType: "json",
data: values
@ -226,7 +226,7 @@
sonarrEpisodeId: $(this).attr("data-sonarrEpisodeId")
};
$.ajax({
url: "/get_subtitle",
url: "{{base_url}}/get_subtitle",
type: "POST",
dataType: "json",
data: values

@ -1,18 +1,18 @@
<html>
<head>
<!DOCTYPE html>
<script src="/static/jquery/jquery-latest.min.js"></script>
<script src="/static/semantic/semantic.min.js"></script>
<script src="/static/jquery/tablesort.js"></script>
<link rel="stylesheet" href="/static/semantic/semantic.min.css">
<script src="{{base_url}}/static/jquery/jquery-latest.min.js"></script>
<script src="{{base_url}}/static/semantic/semantic.min.js"></script>
<script src="{{base_url}}/static/jquery/tablesort.js"></script>
<link rel="stylesheet" href="{{base_url}}/static/semantic/semantic.min.css">
<link rel="apple-touch-icon" sizes="120x120" href="/static/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/static/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/static/favicon-16x16.png">
<link rel="manifest" href="/static/manifest.json">
<link rel="mask-icon" href="/static/safari-pinned-tab.svg" color="#5bbad5">
<link rel="shortcut icon" href="/static/favicon.ico">
<meta name="msapplication-config" content="/static/browserconfig.xml">
<link rel="apple-touch-icon" sizes="120x120" href="{{base_url}}/static/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="{{base_url}}/static/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="{{base_url}}/static/favicon-16x16.png">
<link rel="manifest" href="{{base_url}}/static/manifest.json">
<link rel="mask-icon" href="{{base_url}}/static/safari-pinned-tab.svg" color="#5bbad5">
<link rel="shortcut icon" href="{{base_url}}/static/favicon.ico">
<meta name="msapplication-config" content="{{base_url}}/static/browserconfig.xml">
<meta name="theme-color" content="#ffffff">
<title>History - Bazarr</title>
@ -48,25 +48,25 @@
</div>
<div id="divmenu" class="ui container">
<div style="background-color:#272727;" class="ui inverted borderless labeled icon huge menu five item">
<a href="/"><img style="margin-right:32px;" class="logo" src="/static/logo128.png"></a>
<a href="{{base_url}}/"><img style="margin-right:32px;" class="logo" src="{{base_url}}/static/logo128.png"></a>
<div style="height:80px;" class="ui container">
<a class="item" href="/">
<a class="item" href="{{base_url}}/">
<i class="play icon"></i>
Series
</a>
<a class="item" href="/history">
<a class="item" href="{{base_url}}/history">
<i class="wait icon"></i>
History
</a>
<a class="item" href="/wanted">
<a class="item" href="{{base_url}}/wanted">
<i class="warning sign icon"></i>
Wanted
</a>
<a class="item" href="/settings">
<a class="item" href="{{base_url}}/settings">
<i class="settings icon"></i>
Settings
</a>
<a class="item" href="/system">
<a class="item" href="{{base_url}}/system">
<i class="laptop icon"></i>
System
</a>
@ -102,7 +102,7 @@
</div>
%end
</td>
<td><a href="/episodes/{{row[6]}}">{{row[1]}}</a></td>
<td><a href="{{base_url}}/episodes/{{row[6]}}">{{row[1]}}</a></td>
<td class="collapsing">
<%episode = row[2].split('x')%>
{{episode[0] + 'x' + episode[1].zfill(2)}}

@ -1,18 +1,18 @@
<html>
<head>
<!DOCTYPE html>
<script src="/static/jquery/jquery-latest.min.js"></script>
<script src="/static/semantic/semantic.min.js"></script>
<script src="/static/jquery/tablesort.js"></script>
<link rel="stylesheet" href="/static/semantic/semantic.min.css">
<link rel="apple-touch-icon" sizes="120x120" href="/static/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/static/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/static/favicon-16x16.png">
<link rel="manifest" href="/static/manifest.json">
<link rel="mask-icon" href="/static/safari-pinned-tab.svg" color="#5bbad5">
<link rel="shortcut icon" href="/static/favicon.ico">
<meta name="msapplication-config" content="/static/browserconfig.xml">
<script src="{{base_url}}/static/jquery/jquery-latest.min.js"></script>
<script src="{{base_url}}/static/semantic/semantic.min.js"></script>
<script src="{{base_url}}/static/jquery/tablesort.js"></script>
<link rel="stylesheet" href="{{base_url}}/static/semantic/semantic.min.css">
<link rel="apple-touch-icon" sizes="120x120" href="{{base_url}}/static/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="{{base_url}}/static/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="{{base_url}}/static/favicon-16x16.png">
<link rel="manifest" href="{{base_url}}/static/manifest.json">
<link rel="mask-icon" href="{{base_url}}/static/safari-pinned-tab.svg" color="#5bbad5">
<link rel="shortcut icon" href="{{base_url}}/static/favicon.ico">
<meta name="msapplication-config" content="{{base_url}}/static/browserconfig.xml">
<meta name="theme-color" content="#ffffff">
<title>Bazarr</title>
@ -51,25 +51,25 @@
</div>
<div id="divmenu" class="ui container">
<div style="background-color:#272727;" class="ui inverted borderless labeled icon huge menu five item">
<a href="/"><img style="margin-right:32px;" class="logo" src="/static/logo128.png"></a>
<a href="{{base_url}}/"><img style="margin-right:32px;" class="logo" src="{{base_url}}/static/logo128.png"></a>
<div style="height:80px;" class="ui container">
<a class="item" href="/">
<a class="item" href="{{base_url}}/">
<i class="play icon"></i>
Series
</a>
<a class="item" href="/history">
<a class="item" href="{{base_url}}/history">
<i class="wait icon"></i>
History
</a>
<a class="item" href="/wanted">
<a class="item" href="{{base_url}}/wanted">
<i class="warning sign icon"></i>
Wanted
</a>
<a class="item" href="/settings">
<a class="item" href="{{base_url}}/settings">
<i class="settings icon"></i>
Settings
</a>
<a class="item" href="/system">
<a class="item" href="{{base_url}}/system">
<i class="laptop icon"></i>
System
</a>
@ -99,7 +99,7 @@
%import os
%for row in rows:
<tr class="selectable" {{!"style='background-color: yellow;'" if row[4] == None else ""}}>
<td><a href="/episodes/{{row[5]}}">{{row[1]}}</a></td>
<td><a href="{{base_url}}/episodes/{{row[5]}}">{{row[1]}}</a></td>
<td>
{{row[2]}}
</td>
@ -201,24 +201,24 @@
;
$('#update_series').click(function(){
window.location = '/update_series';
window.location = '{{base_url}}/update_series';
})
$('#update_all_episodes').click(function(){
window.location = '/update_all_episodes';
window.location = '{{base_url}}/update_all_episodes';
})
$('#add_new_episodes').click(function(){
window.location = '/add_new_episodes';
window.location = '{{base_url}}/add_new_episodes';
})
$('.config').click(function(){
sessionStorage.scrolly=$(window).scrollTop();
$('#series_form').attr('action', '/edit_series/' + $(this).data("tvdbid"));
$('#series_form').attr('action', '{{base_url}}/edit_series/' + $(this).data("tvdbid"));
$("#series_title").html($(this).data("title"));
$("#series_poster").attr("src", "/image_proxy" + $(this).data("poster"));
$("#series_poster").attr("src", "{{base_url}}/image_proxy" + $(this).data("poster"));
$('#series_languages').dropdown('clear');
var languages_array = eval($(this).data("languages"));

@ -1,18 +1,18 @@
<html>
<head>
<!DOCTYPE html>
<script src="/static/jquery/jquery-latest.min.js"></script>
<script src="/static/semantic/semantic.min.js"></script>
<script src="/static/jquery/tablesort.js"></script>
<link rel="stylesheet" href="/static/semantic/semantic.min.css">
<script src="{{base_url}}/static/jquery/jquery-latest.min.js"></script>
<script src="{{base_url}}/static/semantic/semantic.min.js"></script>
<script src="{{base_url}}/static/jquery/tablesort.js"></script>
<link rel="stylesheet" href="{{base_url}}/static/semantic/semantic.min.css">
<link rel="apple-touch-icon" sizes="120x120" href="/static/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/static/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/static/favicon-16x16.png">
<link rel="manifest" href="/static/manifest.json">
<link rel="mask-icon" href="/static/safari-pinned-tab.svg" color="#5bbad5">
<link rel="shortcut icon" href="/static/favicon.ico">
<meta name="msapplication-config" content="/static/browserconfig.xml">
<link rel="apple-touch-icon" sizes="120x120" href="{{base_url}}/static/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="{{base_url}}/static/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="{{base_url}}/static/favicon-16x16.png">
<link rel="manifest" href="{{base_url}}/static/manifest.json">
<link rel="mask-icon" href="{{base_url}}/static/safari-pinned-tab.svg" color="#5bbad5">
<link rel="shortcut icon" href="{{base_url}}/static/favicon.ico">
<meta name="msapplication-config" content="{{base_url}}/static/browserconfig.xml">
<meta name="theme-color" content="#ffffff">
<title>Settings - Bazarr</title>
@ -45,25 +45,25 @@
</div>
<div id="divmenu" class="ui container">
<div style="background-color:#272727;" class="ui inverted borderless labeled icon huge menu five item">
<a href="/"><img style="margin-right:32px;" class="logo" src="/static/logo128.png"></a>
<a href="{{base_url}}/"><img style="margin-right:32px;" class="logo" src="{{base_url}}/static/logo128.png"></a>
<div style="height:80px;" class="ui container">
<a class="item" href="/">
<a class="item" href="{{base_url}}/">
<i class="play icon"></i>
Series
</a>
<a class="item" href="/history">
<a class="item" href="{{base_url}}/history">
<i class="wait icon"></i>
History
</a>
<a class="item" href="/wanted">
<a class="item" href="{{base_url}}/wanted">
<i class="warning sign icon"></i>
Wanted
</a>
<a class="item" href="/settings">
<a class="item" href="{{base_url}}/settings">
<i class="settings icon"></i>
Settings
</a>
<a class="item" href="/system">
<a class="item" href="{{base_url}}/system">
<i class="laptop icon"></i>
System
</a>
@ -72,7 +72,7 @@
</div>
<div id="fondblanc" class="ui container">
<form name="settings_form" id="settings_form" action="/save_settings" method="post" class="ui form">
<form name="settings_form" id="settings_form" action="{{base_url}}/save_settings" method="post" class="ui form">
<div class="ui top attached tabular menu">
<a class="item active" data-tab="general">General</a>
<a class="item" data-tab="sonarr">Sonarr</a>

@ -1,18 +1,18 @@
<html>
<head>
<!DOCTYPE html>
<script src="/static/jquery/jquery-latest.min.js"></script>
<script src="/static/semantic/semantic.min.js"></script>
<script src="/static/jquery/tablesort.js"></script>
<link rel="stylesheet" href="/static/semantic/semantic.min.css">
<script src="{{base_url}}/static/jquery/jquery-latest.min.js"></script>
<script src="{{base_url}}/static/semantic/semantic.min.js"></script>
<script src="{{base_url}}/static/jquery/tablesort.js"></script>
<link rel="stylesheet" href="{{base_url}}/static/semantic/semantic.min.css">
<link rel="apple-touch-icon" sizes="120x120" href="/static/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/static/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/static/favicon-16x16.png">
<link rel="manifest" href="/static/manifest.json">
<link rel="mask-icon" href="/static/safari-pinned-tab.svg" color="#5bbad5">
<link rel="shortcut icon" href="/static/favicon.ico">
<meta name="msapplication-config" content="/static/browserconfig.xml">
<link rel="apple-touch-icon" sizes="120x120" href="{{base_url}}/static/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="{{base_url}}/static/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="{{base_url}}/static/favicon-16x16.png">
<link rel="manifest" href="{{base_url}}/static/manifest.json">
<link rel="mask-icon" href="{{base_url}}/static/safari-pinned-tab.svg" color="#5bbad5">
<link rel="shortcut icon" href="{{base_url}}/static/favicon.ico">
<meta name="msapplication-config" content="{{base_url}}/static/browserconfig.xml">
<meta name="theme-color" content="#ffffff">
<title>System - Bazarr</title>
@ -45,25 +45,25 @@
</div>
<div id="divmenu" class="ui container">
<div style="background-color:#272727;" class="ui inverted borderless labeled icon huge menu five item">
<a href="/"><img style="margin-right:32px;" class="logo" src="/static/logo128.png"></a>
<a href="{{base_url}}/"><img style="margin-right:32px;" class="logo" src="{{base_url}}/static/logo128.png"></a>
<div style="height:80px;" class="ui container">
<a class="item" href="/">
<a class="item" href="{{base_url}}/">
<i class="play icon"></i>
Series
</a>
<a class="item" href="/history">
<a class="item" href="{{base_url}}/history">
<i class="wait icon"></i>
History
</a>
<a class="item" href="/wanted">
<a class="item" href="{{base_url}}/wanted">
<i class="warning sign icon"></i>
Wanted
</a>
<a class="item" href="/settings">
<a class="item" href="{{base_url}}/settings">
<i class="settings icon"></i>
Settings
</a>
<a class="item" href="/system">
<a class="item" href="{{base_url}}/system">
<i class="laptop icon"></i>
System
</a>

@ -1,18 +1,18 @@
<html>
<head>
<!DOCTYPE html>
<script src="/static/jquery/jquery-latest.min.js"></script>
<script src="/static/semantic/semantic.min.js"></script>
<script src="/static/jquery/tablesort.js"></script>
<link rel="stylesheet" href="/static/semantic/semantic.min.css">
<script src="{{base_url}}/static/jquery/jquery-latest.min.js"></script>
<script src="{{base_url}}/static/semantic/semantic.min.js"></script>
<script src="{{base_url}}/static/jquery/tablesort.js"></script>
<link rel="stylesheet" href="{{base_url}}/static/semantic/semantic.min.css">
<link rel="apple-touch-icon" sizes="120x120" href="/static/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/static/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/static/favicon-16x16.png">
<link rel="manifest" href="/static/manifest.json">
<link rel="mask-icon" href="/static/safari-pinned-tab.svg" color="#5bbad5">
<link rel="shortcut icon" href="/static/favicon.ico">
<meta name="msapplication-config" content="/static/browserconfig.xml">
<link rel="apple-touch-icon" sizes="120x120" href="{{base_url}}/static/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="{{base_url}}/static/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="{{base_url}}/static/favicon-16x16.png">
<link rel="manifest" href="{{base_url}}/static/manifest.json">
<link rel="mask-icon" href="{{base_url}}/static/safari-pinned-tab.svg" color="#5bbad5">
<link rel="shortcut icon" href="{{base_url}}/static/favicon.ico">
<meta name="msapplication-config" content="{{base_url}}/static/browserconfig.xml">
<meta name="theme-color" content="#ffffff">
<title>Wanted - Bazarr</title>
@ -53,25 +53,25 @@
</div>
<div id="divmenu" class="ui container">
<div style="background-color:#272727;" class="ui inverted borderless labeled icon huge menu five item">
<a href="/"><img style="margin-right:32px;" class="logo" src="/static/logo128.png"></a>
<a href="{{base_url}}/"><img style="margin-right:32px;" class="logo" src="{{base_url}}/static/logo128.png"></a>
<div style="height:80px;" class="ui container">
<a class="item" href="/">
<a class="item" href="{{base_url}}/">
<i class="play icon"></i>
Series
</a>
<a class="item" href="/history">
<a class="item" href="{{base_url}}/history">
<i class="wait icon"></i>
History
</a>
<a class="item" href="/wanted">
<a class="item" href="{{base_url}}/wanted">
<i class="warning sign icon"></i>
Wanted
</a>
<a class="item" href="/settings">
<a class="item" href="{{base_url}}/settings">
<i class="settings icon"></i>
Settings
</a>
<a class="item" href="/system">
<a class="item" href="{{base_url}}/system">
<i class="laptop icon"></i>
System
</a>
@ -97,7 +97,7 @@
%import pretty
%for row in rows:
<tr class="selectable">
<td><a href="/episodes/{{row[4]}}">{{row[0]}}</a></td>
<td><a href="{{base_url}}/episodes/{{row[4]}}">{{row[0]}}</a></td>
<td class="collapsing">
<%episode = row[1].split('x')%>
{{episode[0] + 'x' + episode[1].zfill(2)}}
@ -171,7 +171,7 @@
})
$('#wanted_search_missing_subtitles').click(function(){
window.location = '/wanted_search_missing_subtitles';
window.location = '{{base_url}}/wanted_search_missing_subtitles';
})
$('.get_subtitle').click(function(){
@ -183,7 +183,7 @@
sonarrEpisodeId: $(this).attr("data-sonarrEpisodeId")
};
$.ajax({
url: "/get_subtitle",
url: "{{base_url}}/get_subtitle",
type: "POST",
dataType: "json",
data: values

Loading…
Cancel
Save