mirror of https://github.com/morpheus65535/bazarr
Switch to in memory cache on every OS
This commit is contained in:
parent
10946b1c38
commit
472980e3b3
|
@ -10,10 +10,7 @@ from list_subtitles import *
|
|||
from utils import *
|
||||
|
||||
# configure the cache
|
||||
if os.name == 'nt':
|
||||
region.configure('dogpile.cache.memory')
|
||||
else:
|
||||
region.configure('dogpile.cache.dbm', arguments={'filename': os.path.join(os.path.dirname(__file__), 'data/cache/cachefile.dbm')})
|
||||
region.configure('dogpile.cache.memory')
|
||||
|
||||
def download_subtitle(path, language, hi, providers, providers_auth):
|
||||
try:
|
||||
|
|
Loading…
Reference in New Issue