This commit is contained in:
Halali 2019-02-24 00:26:19 +01:00
parent 8321b1575f
commit d2ab9aa38c
4 changed files with 18 additions and 5 deletions

View File

@ -608,7 +608,7 @@ def edit_series(no):
lang = 'None'
single_language = settings.general.getboolean('single_language')
if single_language is True:
if single_language:
if str(lang) == "['None']":
lang = 'None'
else:
@ -805,8 +805,15 @@ def edit_movie(no):
else:
lang = 'None'
if str(lang) == "['']":
lang = '[]'
single_language = settings.general.getboolean('single_language')
if single_language:
if str(lang) == "['None']":
lang = 'None'
else:
lang = str(lang)
else:
if str(lang) == "['']":
lang = '[]'
hi = request.forms.get('hearing_impaired')

View File

@ -249,6 +249,9 @@
<div class="nine wide column">
<select name="languages" id="movie_languages" {{!'multiple="" ' if single_language is False else ''}} class="ui fluid selection dropdown">
<option value="">Languages</option>
%if single_language:
<option value="None">None</option>
%end
%for language in languages:
<option value="{{language[0]}}">{{language[1]}}</option>
%end

View File

@ -182,6 +182,9 @@
<div class="nine wide column">
<select name="languages" id="movies_languages" {{!'multiple="" ' if single_language is False else ''}}class="ui fluid selection dropdown">
<option value="">Languages</option>
%if single_language:
<option value="None">None</option>
%end
%for language in languages:
<option value="{{language[0]}}">{{language[1]}}</option>
%end

View File

@ -94,7 +94,7 @@
%end
%end
</td>
<td>{{!"" if row[4] == None else row[4]}}</td>
<td>{{!"" if row[4] is None else row[4]}}</td>
<td>
%total_subs = 0
%missing_subs = 0
@ -199,7 +199,7 @@
<div class="nine wide column">
<select name="languages" id="series_languages" {{!'multiple="" ' if single_language is False else ''}}class="ui fluid selection dropdown">
<option value="">Languages</option>
%if single_language is True:
%if single_language:
<option value="None">None</option>
%end
%for language in languages: