pull/884/head
Louis Vézina 5 years ago
parent 49c93780bf
commit b6242c746c

@ -22,6 +22,7 @@ from list_subtitles import store_subtitles, store_subtitles_movie, series_scan_s
list_missing_subtitles, list_missing_subtitles_movies
from utils import history_log, history_log_movie
from get_providers import get_providers, get_providers_auth, list_throttled_providers
from websocket_handler import event_stream
from subliminal_patch.core import SUBTITLE_EXTENSIONS
@ -139,6 +140,8 @@ class Series(Resource):
list_missing_subtitles(no=seriesId)
event_stream.write(type='series', action='update', series=seriesId)
return '', 204

@ -222,7 +222,8 @@ def list_missing_subtitles(no=None, epno=None):
desired_subtitles = desired_subtitles_temp
actual_subtitles_list = []
if desired_subtitles is None:
missing_subtitles_global.append(tuple(['[]', episode_subtitles['sonarrEpisodeId']]))
missing_subtitles_global.append(tuple(['[]', episode_subtitles['sonarrEpisodeId'],
episode_subtitles['sonarrSeriesId']]))
else:
for item in actual_subtitles:
if item[0] == "pt-BR":

@ -346,7 +346,7 @@
},
{"data": null,
"render": function (data) {
if (data.subtitles !== null) {
if (data.subtitles !== 'None') {
var languages = '';
data.subtitles.forEach(appendFunc);
return languages;
@ -365,7 +365,7 @@
},
{"data": null,
"render": function (data) {
if (data.missing_subtitles !== null) {
if (data.missing_subtitles !== 'None') {
var languages = '';
data.missing_subtitles.forEach(appendFunc);
return languages;
@ -808,7 +808,7 @@
$('#seriesFileCount').text(seriesDetails['episodeFileCount'] + ' files');
var languages = '';
if (seriesDetails['languages'] !== null) {
if (seriesDetails['languages'] !== 'None') {
seriesDetails['languages'].forEach(appendFunc);
}

Loading…
Cancel
Save