% 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 % from functools import reduce %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 = database.execute("SELECT COUNT(*) as count FROM table_episodes WHERE missing_subtitles != '[]'" + monitored_only_query_string_sonarr, only_one=True)['count'] % wanted_movies = database.execute("SELECT COUNT(*) as count FROM table_movies WHERE missing_subtitles != '[]'" + monitored_only_query_string_radarr, only_one=True)['count'] % 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 % from six import PY2 % import datetime % if PY2:
Python deprecation warning

Bazarr won't update anymore until you upgrade Python!

Bazarr is now compatible with Python 3.6 and newer. You must upgrade Python as we don't support Python 2.x anymore.
% if os.name == 'posix':
If you are running under Docker, don't worry, we'll take care of this for you. Just pull the new image.
% end % if os.name == 'nt':
If you have installed using the Windows Installer, just download the new installer that will upgrade your current installation (make sure to not change installation directory).
% end
If you are running from source, it's up to you to install Python 3 (don't forget requirements.txt) and use it to run Bazarr.
% end