% 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 {% set throttled_providers_count = settings.general.throtteled_providers|length %}
{% if update_required == '1' and restart_required == '1' %}
Bazarr Needs To Be Restarted To Apply The Last Update & Changes To General Settings. Click Here To Restart.
{% elif updaterequired == '1' %}
Bazarr Needs To Be Restarted To Apply Changes To The Last Update. Click Here To Restart.
{% elif restart_required == '1' %}
Bazarr Needs To Be Restarted To Apply Changes To General Settings. Click Here To Restart.
{% endif %} % 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 2019.
% 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, we'll provide a new installer soon.
% end
If you are running from source, it's up to you to install Python 3 and use it to run Bazarr.
% end