diff --git a/bazarr.py b/bazarr.py index ce1d72ea4..36c32f6e9 100644 --- a/bazarr.py +++ b/bazarr.py @@ -20,6 +20,9 @@ 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 * @@ -215,6 +218,7 @@ 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 44451c0c5..18e2c7baf 100644 --- a/get_subtitle.py +++ b/get_subtitle.py @@ -8,9 +8,6 @@ from get_general_settings import * from list_subtitles import * from utils import * -from pympler.tracker import SummaryTracker -tracker = SummaryTracker() - # configure the cache region.configure('dogpile.cache.dbm', arguments={'filename': os.path.join(os.path.dirname(__file__), 'data/cache/cachefile.dbm')}) @@ -79,4 +76,3 @@ def wanted_search_missing_subtitles(): for episode in data: wanted_download_subtitles(episode[0]) - tracker.print_diff()