mirror of
https://github.com/morpheus65535/bazarr.git
synced 2025-01-01 12:32:25 +08:00
Continuig development
This commit is contained in:
parent
40beedbdb5
commit
ce874efb31
5 changed files with 42 additions and 10 deletions
|
@ -7,11 +7,12 @@ VOLUME /tv
|
||||||
RUN apk add --update build-base python-dev py2-pip py-setuptools jpeg-dev zlib-dev git
|
RUN apk add --update build-base python-dev py2-pip py-setuptools jpeg-dev zlib-dev git
|
||||||
|
|
||||||
ADD . /bazarr
|
ADD . /bazarr
|
||||||
|
|
||||||
|
# Install app dependencies
|
||||||
|
RUN pip install -r /bazarr/requirements.txt
|
||||||
|
|
||||||
#RUN git clone -b development --single-branch https://github.com/morpheus65535/bazarr.git
|
#RUN git clone -b development --single-branch https://github.com/morpheus65535/bazarr.git
|
||||||
|
|
||||||
WORKDIR /bazarr
|
WORKDIR /bazarr
|
||||||
|
|
||||||
# Install app dependencies
|
|
||||||
RUN pip install -r requirements.txt
|
|
||||||
|
|
||||||
CMD ["python", "bazarr.py"]
|
CMD ["python", "bazarr.py"]
|
|
@ -81,6 +81,7 @@ def list_missing_subtitles(*no):
|
||||||
actual_subtitles = []
|
actual_subtitles = []
|
||||||
desired_subtitles = []
|
desired_subtitles = []
|
||||||
missing_subtitles = []
|
missing_subtitles = []
|
||||||
|
if episode_subtitles[1] != None:
|
||||||
actual_subtitles = ast.literal_eval(episode_subtitles[1])
|
actual_subtitles = ast.literal_eval(episode_subtitles[1])
|
||||||
desired_subtitles = ast.literal_eval(episode_subtitles[2])
|
desired_subtitles = ast.literal_eval(episode_subtitles[2])
|
||||||
actual_subtitles_list = []
|
actual_subtitles_list = []
|
||||||
|
|
|
@ -152,7 +152,11 @@
|
||||||
<td>{{episode[3]}}</td>
|
<td>{{episode[3]}}</td>
|
||||||
<td>{{episode[0]}}</td>
|
<td>{{episode[0]}}</td>
|
||||||
<td>
|
<td>
|
||||||
|
%if episode[4] is not None:
|
||||||
% actual_languages = ast.literal_eval(episode[4])
|
% actual_languages = ast.literal_eval(episode[4])
|
||||||
|
%else:
|
||||||
|
actual_languages = '[]'
|
||||||
|
%end
|
||||||
%if actual_languages is not None:
|
%if actual_languages is not None:
|
||||||
%for language in actual_languages:
|
%for language in actual_languages:
|
||||||
%if language[1] is not None:
|
%if language[1] is not None:
|
||||||
|
@ -169,7 +173,11 @@
|
||||||
%end
|
%end
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
|
%if episode[6] is not None:
|
||||||
% missing_languages = ast.literal_eval(episode[6])
|
% missing_languages = ast.literal_eval(episode[6])
|
||||||
|
%else:
|
||||||
|
missing_languages = '[]'
|
||||||
|
%end
|
||||||
%if missing_languages is not None:
|
%if missing_languages is not None:
|
||||||
%for language in missing_languages:
|
%for language in missing_languages:
|
||||||
<a data-episodePath="{{episode[1]}}" data-language="{{pycountry.languages.lookup(str(language)).alpha_3}}" data-hi="{{details[4]}}" data-sonarrSeriesId={{episode[5]}} data-sonarrEpisodeId={{episode[7]}} class="get_subtitle ui tiny label">
|
<a data-episodePath="{{episode[1]}}" data-language="{{pycountry.languages.lookup(str(language)).alpha_3}}" data-hi="{{details[4]}}" data-sonarrSeriesId={{episode[5]}} data-sonarrEpisodeId={{episode[7]}} class="get_subtitle ui tiny label">
|
||||||
|
|
|
@ -98,7 +98,7 @@
|
||||||
%import ast
|
%import ast
|
||||||
%import os
|
%import os
|
||||||
%for row in rows:
|
%for row in rows:
|
||||||
<tr class="selectable" {{!"style='background-color: yellow;'" if row[4] == None else ""}}>
|
<tr class="selectable">
|
||||||
<td><a href="{{base_url}}/episodes/{{row[5]}}">{{row[1]}}</a></td>
|
<td><a href="{{base_url}}/episodes/{{row[5]}}">{{row[1]}}</a></td>
|
||||||
<td>
|
<td>
|
||||||
{{row[2]}}
|
{{row[2]}}
|
||||||
|
@ -112,7 +112,7 @@
|
||||||
%end
|
%end
|
||||||
</td>
|
</td>
|
||||||
<td>{{row[4]}}</td>
|
<td>{{row[4]}}</td>
|
||||||
<td>
|
<td {{!"style='background-color: yellow;'" if row[4] == None else ""}}>
|
||||||
<%
|
<%
|
||||||
subs_languages_list = []
|
subs_languages_list = []
|
||||||
if subs_languages is not None:
|
if subs_languages is not None:
|
||||||
|
|
|
@ -143,7 +143,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="ui dividing header">Remote Path Mappings</div>
|
<div class="ui dividing header">Path Mappings</div>
|
||||||
<div class="twelve wide column">
|
<div class="twelve wide column">
|
||||||
<div class="ui grid">
|
<div class="ui grid">
|
||||||
%import ast
|
%import ast
|
||||||
|
@ -152,6 +152,28 @@
|
||||||
%else:
|
%else:
|
||||||
% path_substitutions = []
|
% path_substitutions = []
|
||||||
%end
|
%end
|
||||||
|
<div class="middle aligned row">
|
||||||
|
<div class="right aligned four wide column">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="four wide column">
|
||||||
|
<div class="ui fluid input">
|
||||||
|
<h4 class="ui header">
|
||||||
|
Path for Sonarr:
|
||||||
|
</h4>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="center aligned column">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="four wide column">
|
||||||
|
<div class="ui fluid input">
|
||||||
|
<h4 class="ui header">
|
||||||
|
Path for Bazarr:
|
||||||
|
</h4>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
%for x in range(0, 5):
|
%for x in range(0, 5):
|
||||||
% path = []
|
% path = []
|
||||||
% try:
|
% try:
|
||||||
|
|
Loading…
Reference in a new issue