% 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 is now compatible with Python 3.6 and newer. You should upgrade Python as we'll drop support for Python 2.7.x by the end of January 2020.
% 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 that should be available within a couple of days.
% 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