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

@ -608,7 +608,7 @@ def edit_series(no):
lang = 'None' lang = 'None'
single_language = settings.general.getboolean('single_language') single_language = settings.general.getboolean('single_language')
if single_language is True: if single_language:
if str(lang) == "['None']": if str(lang) == "['None']":
lang = 'None' lang = 'None'
else: else:
@ -805,6 +805,13 @@ def edit_movie(no):
else: else:
lang = 'None' lang = 'None'
single_language = settings.general.getboolean('single_language')
if single_language:
if str(lang) == "['None']":
lang = 'None'
else:
lang = str(lang)
else:
if str(lang) == "['']": if str(lang) == "['']":
lang = '[]' lang = '[]'

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

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

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

Loading…
Cancel
Save