Revert "Make dogpile.cache using memory only under Windows"

This reverts commit 6f18c5888b.
This commit is contained in:
Louis Vézina 2017-11-29 15:11:53 -05:00
parent 6f0c98e256
commit e1a1aa2ac8
1 changed files with 2 additions and 4 deletions

View File

@ -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)