From badfb3f86679ecbc963a30060e3f17fabd9b0e06 Mon Sep 17 00:00:00 2001 From: morpheus65535 <5130500+morpheus65535@users.noreply.github.com> Date: Thu, 13 Sep 2018 06:38:10 -0400 Subject: [PATCH] Fix for --no-update --- bazarr.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/bazarr.py b/bazarr.py index 27072249e..aaf56a9ae 100644 --- a/bazarr.py +++ b/bazarr.py @@ -3,7 +3,7 @@ bazarr_version = '0.6.2' import gc gc.enable() -from get_argv import config_dir +from get_argv import config_dir, no_update import os import sys @@ -12,7 +12,8 @@ sys.setdefaultencoding('utf8') sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'libs/')) import sqlite3 -from update_modules import * +if no_update is False: + from update_modules import * from init import * from update_db import * @@ -82,7 +83,8 @@ from get_providers import * from get_series import * from get_episodes import * from get_settings import base_url, ip, port, path_replace, path_replace_movie -from check_update import check_and_apply_update +if no_update is False: + from check_update import check_and_apply_update from list_subtitles import store_subtitles, store_subtitles_movie, series_scan_subtitles, movies_scan_subtitles, list_missing_subtitles, list_missing_subtitles_movies from get_subtitle import download_subtitle, series_download_subtitles, movies_download_subtitles, wanted_download_subtitles, wanted_search_missing_subtitles, manual_search, manual_download_subtitle from utils import history_log, history_log_movie @@ -1229,7 +1231,8 @@ def check_update(): authorize() ref = request.environ['HTTP_REFERER'] - check_and_apply_update() + if no_update is False: + check_and_apply_update() redirect(ref)