Continuing development.

pull/479/head
Louis Vézina 6 years ago
parent 93e061462a
commit 1322dcde2f

@ -218,6 +218,7 @@ def list_missing_subtitles(*no):
use_embedded_subs = settings.general.getboolean('use_embedded_subs') use_embedded_subs = settings.general.getboolean('use_embedded_subs')
for episode_subtitles in episodes_subtitles: for episode_subtitles in episodes_subtitles:
actual_subtitles_temp = [] actual_subtitles_temp = []
desired_subtitles_temp = []
actual_subtitles = [] actual_subtitles = []
desired_subtitles = [] desired_subtitles = []
missing_subtitles = [] missing_subtitles = []
@ -234,6 +235,11 @@ def list_missing_subtitles(*no):
if episode_subtitles[3] == "True" and desired_subtitles is not None: if episode_subtitles[3] == "True" and desired_subtitles is not None:
for i, desired_subtitle in enumerate(desired_subtitles): for i, desired_subtitle in enumerate(desired_subtitles):
desired_subtitles[i] = desired_subtitle + ":forced" desired_subtitles[i] = desired_subtitle + ":forced"
elif episode_subtitles[3] == "Both" and desired_subtitles is not None:
for desired_subtitle in desired_subtitles:
desired_subtitles_temp.append(desired_subtitle)
desired_subtitles_temp.append(desired_subtitle + ":forced")
desired_subtitles = desired_subtitles_temp
actual_subtitles_list = [] actual_subtitles_list = []
if desired_subtitles is None: if desired_subtitles is None:
missing_subtitles_global.append(tuple(['[]', episode_subtitles[0]])) missing_subtitles_global.append(tuple(['[]', episode_subtitles[0]]))
@ -241,6 +247,8 @@ def list_missing_subtitles(*no):
for item in actual_subtitles: for item in actual_subtitles:
if item[0] == "pt-BR": if item[0] == "pt-BR":
actual_subtitles_list.append("pb") actual_subtitles_list.append("pb")
elif item[0] == "pt-BR:forced":
actual_subtitles_list.append("pb:forced")
else: else:
actual_subtitles_list.append(item[0]) actual_subtitles_list.append(item[0])
missing_subtitles = list(set(desired_subtitles) - set(actual_subtitles_list)) missing_subtitles = list(set(desired_subtitles) - set(actual_subtitles_list))
@ -269,6 +277,7 @@ def list_missing_subtitles_movies(*no):
use_embedded_subs = settings.general.getboolean('use_embedded_subs') use_embedded_subs = settings.general.getboolean('use_embedded_subs')
for movie_subtitles in movies_subtitles: for movie_subtitles in movies_subtitles:
actual_subtitles_temp = [] actual_subtitles_temp = []
desired_subtitles_temp = []
actual_subtitles = [] actual_subtitles = []
desired_subtitles = [] desired_subtitles = []
missing_subtitles = [] missing_subtitles = []
@ -285,6 +294,11 @@ def list_missing_subtitles_movies(*no):
if movie_subtitles[3] == "True" and desired_subtitles is not None: if movie_subtitles[3] == "True" and desired_subtitles is not None:
for i, desired_subtitle in enumerate(desired_subtitles): for i, desired_subtitle in enumerate(desired_subtitles):
desired_subtitles[i] = desired_subtitle + ":forced" desired_subtitles[i] = desired_subtitle + ":forced"
elif movie_subtitles[3] == "Both" and desired_subtitles is not None:
for desired_subtitle in desired_subtitles:
desired_subtitles_temp.append(desired_subtitle)
desired_subtitles_temp.append(desired_subtitle + ":forced")
desired_subtitles = desired_subtitles_temp
actual_subtitles_list = [] actual_subtitles_list = []
if desired_subtitles is None: if desired_subtitles is None:
missing_subtitles_global.append(tuple(['[]', movie_subtitles[0]])) missing_subtitles_global.append(tuple(['[]', movie_subtitles[0]]))
@ -292,6 +306,8 @@ def list_missing_subtitles_movies(*no):
for item in actual_subtitles: for item in actual_subtitles:
if item[0] == "pt-BR": if item[0] == "pt-BR":
actual_subtitles_list.append("pb") actual_subtitles_list.append("pb")
elif item[0] == "pt-BR:forced":
actual_subtitles_list.append("pb:forced")
else: else:
actual_subtitles_list.append(item[0]) actual_subtitles_list.append(item[0])
missing_subtitles = list(set(desired_subtitles) - set(actual_subtitles_list)) missing_subtitles = list(set(desired_subtitles) - set(actual_subtitles_list))

@ -254,7 +254,7 @@
if (window.location.href.indexOf("episodes") > -1) { if (window.location.href.indexOf("episodes") > -1) {
$('.menu_segment').css('background', '#000000'); $('.menu_segment').css('background', '#000000');
$('.menu_segment').css('opacity', '0.8'); $('.menu_segment').css('opacity', '0.9');
$('.menu_segment').css('border-color', '#000000'); $('.menu_segment').css('border-color', '#000000');
$('#divmenu').css('background', '#000000'); $('#divmenu').css('background', '#000000');
$('#divmenu').css('opacity', '0.8'); $('#divmenu').css('opacity', '0.8');
@ -262,7 +262,7 @@
} }
else if (window.location.href.indexOf("movie/") > -1) { else if (window.location.href.indexOf("movie/") > -1) {
$('.menu_segment').css('background', '#000000'); $('.menu_segment').css('background', '#000000');
$('.menu_segment').css('opacity', '0.8'); $('.menu_segment').css('opacity', '0.9');
$('.menu_segment').css('border-color', '#000000'); $('.menu_segment').css('border-color', '#000000');
$('#divmenu').css('background', '#000000'); $('#divmenu').css('background', '#000000');
$('#divmenu').css('opacity', '0.8'); $('#divmenu').css('opacity', '0.8');

Loading…
Cancel
Save