mirror of
https://github.com/morpheus65535/bazarr
synced 2024-12-26 17:47:20 +00:00
Make dogpile.cache using memory only under Windows
This commit is contained in:
parent
9b679e6452
commit
6f18c5888b
1 changed files with 4 additions and 2 deletions
|
@ -9,8 +9,10 @@ from list_subtitles import *
|
||||||
from utils import *
|
from utils import *
|
||||||
|
|
||||||
# configure the cache
|
# configure the cache
|
||||||
#region.configure('dogpile.cache.dbm', arguments={'filename': os.path.join(os.path.dirname(__file__), 'data/cache/cachefile.dbm')})
|
if os.name == 'nt':
|
||||||
region.configure('dogpile.cache.memory')
|
region.configure('dogpile.cache.memory')
|
||||||
|
else:
|
||||||
|
region.configure('dogpile.cache.dbm', arguments={'filename': os.path.join(os.path.dirname(__file__), 'data/cache/cachefile.dbm')})
|
||||||
|
|
||||||
def download_subtitle(path, language, hi, providers):
|
def download_subtitle(path, language, hi, providers):
|
||||||
video = scan_video(path)
|
video = scan_video(path)
|
||||||
|
|
Loading…
Reference in a new issue