Merge branch 'development' into python3

# Conflicts:
#	views/movie.tpl
pull/684/head
Louis Vézina 5 years ago
commit 47f7944d64

@ -204,7 +204,12 @@ def throttled_count(name):
def update_throttled_provider(): def update_throttled_provider():
changed = False changed = False
if settings.general.enabled_providers: if settings.general.enabled_providers:
for provider in settings.general.enabled_providers.lower().split(','): for provider in list(tp):
if provider not in settings.general.enabled_providers:
del tp[provider]
settings.general.throtteled_providers = str(tp)
changed = True
reason, until, throttle_desc = tp.get(provider, (None, None, None)) reason, until, throttle_desc = tp.get(provider, (None, None, None))
if reason: if reason:

@ -222,7 +222,7 @@
<td> <td>
%if episode['subtitles'] is not None: %if episode['subtitles'] is not None:
% actual_languages = ast.literal_eval(episode['subtitles']) % actual_languages = ast.literal_eval(episode['subtitles'])
% actual_languages.sort() % actual_languages = sorted(actual_languages, key=lambda x: (x is None, x))
%else: %else:
% actual_languages = '[]' % actual_languages = '[]'
%end %end

@ -171,7 +171,7 @@
<tbody> <tbody>
<% <%
subtitles_files = ast.literal_eval(str(details['subtitles'])) subtitles_files = ast.literal_eval(str(details['subtitles']))
subtitles_files.sort(key = lambda x: x[0]) subtitles_files = sorted(subtitles_files, key=lambda x: (x is None, x))
if subtitles_files is not None: if subtitles_files is not None:
for subtitles_file in subtitles_files: for subtitles_file in subtitles_files:
if subtitles_file[0].endswith(':forced'): if subtitles_file[0].endswith(':forced'):

Loading…
Cancel
Save