From e1a1aa2ac83d38689eebfadef65aac204a4ab881 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Louis=20V=C3=A9zina?= <5130500+morpheus65535@users.noreply.github.com> Date: Wed, 29 Nov 2017 15:11:53 -0500 Subject: [PATCH] Revert "Make dogpile.cache using memory only under Windows" This reverts commit 6f18c5888be858d416ab45278187616bbc772200. --- get_subtitle.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/get_subtitle.py b/get_subtitle.py index 13faa526d..74d817340 100644 --- a/get_subtitle.py +++ b/get_subtitle.py @@ -9,10 +9,8 @@ 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.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): video = scan_video(path)