% from get_args import args % from get_providers import update_throttled_provider % update_throttled_provider() % import ast % import datetime % import os % from database import database % import operator % from config import settings %if settings.sonarr.getboolean('only_monitored'): % monitored_only_query_string_sonarr = ' AND monitored = "True"' %else: % monitored_only_query_string_sonarr = "" %end %if settings.radarr.getboolean('only_monitored'): % monitored_only_query_string_radarr = ' AND monitored = "True"' %else: % monitored_only_query_string_radarr = "" %end % wanted_series = len(database.execute("SELECT COUNT(*) FROM table_episodes WHERE missing_subtitles != '[]'" + monitored_only_query_string_sonarr)) % wanted_movies = len(database.execute("SELECT COUNT(*) FROM table_movies WHERE missing_subtitles != '[]'" + monitored_only_query_string_radarr)) % from get_providers import list_throttled_providers % throttled_providers_count = len(eval(str(settings.general.throtteled_providers)))
% restart_required = database.execute("SELECT configured, updated FROM system") % for item in restart_required: % restart_required = item % break % end % if restart_required['updated'] == '1' and restart_required['configured'] == '1':
Bazarr Needs To Be Restarted To Apply The Last Update & Changes To General Settings. Click Here To Restart.
% elif restart_required['updated'] == '1':
Bazarr Needs To Be Restarted To Apply Changes To The Last Update. Click Here To Restart.
% elif restart_required['configured'] == '1':
Bazarr Needs To Be Restarted To Apply Changes To General Settings. Click Here To Restart.
% end