mirror of
https://github.com/morpheus65535/bazarr.git
synced 2025-02-13 09:31:50 +08:00
Memory leak investigation
This commit is contained in:
parent
cd3f2b0721
commit
43abd5c3fb
1 changed files with 3 additions and 1 deletions
|
@ -8,6 +8,8 @@ from get_general_settings import *
|
|||
from list_subtitles import *
|
||||
from utils import *
|
||||
|
||||
from memory_profiler import profile
|
||||
|
||||
# configure the cache
|
||||
region.configure('dogpile.cache.dbm', arguments={'filename': os.path.join(os.path.dirname(__file__), 'data/cache/cachefile.dbm')})
|
||||
|
||||
|
@ -64,7 +66,7 @@ def wanted_download_subtitles(path):
|
|||
store_subtitles(path_replace(episode[0]))
|
||||
list_missing_subtitles(episode[3])
|
||||
history_log(1, episode[3], episode[2], message)
|
||||
|
||||
@profile
|
||||
def wanted_search_missing_subtitles():
|
||||
db = sqlite3.connect(os.path.join(os.path.dirname(__file__), 'data/db/bazarr.db'))
|
||||
db.create_function("path_substitution", 1, path_replace)
|
||||
|
|
Loading…
Reference in a new issue