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