1
0
Fork 0
mirror of https://github.com/morpheus65535/bazarr synced 2024-12-25 01:02:19 +00:00
This commit is contained in:
Louis Vézina 2020-01-24 06:33:50 -05:00
parent 49c93780bf
commit b6242c746c
3 changed files with 8 additions and 4 deletions

View file

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

View file

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

View file

@ -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);
}