diff --git a/bazarr.py b/bazarr.py index 36c32f6e9..ce1d72ea4 100644 --- a/bazarr.py +++ b/bazarr.py @@ -20,9 +20,6 @@ from io import BytesIO from fdsend import send_file import urllib -from pympler.tracker import SummaryTracker -tracker = SummaryTracker() - from init_db import * from get_languages import * from get_providers import * @@ -218,7 +215,6 @@ def wanted_search_missing_subtitles_list(): ref = request.environ['HTTP_REFERER'] wanted_search_missing_subtitles() - tracker.print_diff() redirect(ref) diff --git a/get_subtitle.py b/get_subtitle.py index 918683c18..04fd74c97 100644 --- a/get_subtitle.py +++ b/get_subtitle.py @@ -26,6 +26,13 @@ def download_subtitle(path, language, hi, providers): except: return None + del video + del best_subtitles + del result + del downloaded_provider + del downloaded_language + del message + def series_download_subtitles(no): conn_db = sqlite3.connect(os.path.join(os.path.dirname(__file__), 'data/db/bazarr.db')) c_db = conn_db.cursor()