Make dogpile.cache using memory only under Windows

pull/26/head
Louis Vézina 7 years ago
parent 9b679e6452
commit 6f18c5888b

@ -9,8 +9,10 @@ from list_subtitles import *
from utils import *
# configure the cache
#region.configure('dogpile.cache.dbm', arguments={'filename': os.path.join(os.path.dirname(__file__), 'data/cache/cachefile.dbm')})
region.configure('dogpile.cache.memory')
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')})
def download_subtitle(path, language, hi, providers):
video = scan_video(path)

Loading…
Cancel
Save