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