pull/489/head
Halali 6 years ago
parent 8321b1575f
commit d2ab9aa38c

@ -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')

@ -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

@ -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

@ -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:

Loading…
Cancel
Save