|
|
@ -109,16 +109,12 @@ if not os.path.exists(os.path.join(args.config_dir, 'db', 'bazarr.db')):
|
|
|
|
|
|
|
|
|
|
|
|
# upgrade database schema
|
|
|
|
# upgrade database schema
|
|
|
|
from database import db_upgrade
|
|
|
|
from database import db_upgrade
|
|
|
|
|
|
|
|
|
|
|
|
db_upgrade()
|
|
|
|
db_upgrade()
|
|
|
|
|
|
|
|
|
|
|
|
# Configure dogpile file caching for Subliminal request
|
|
|
|
# Configure dogpile file caching for Subliminal request
|
|
|
|
register_cache_backend("subzero.cache.file", "subzero.cache_backends.file", "SZFileBackend")
|
|
|
|
register_cache_backend("subzero.cache.file", "subzero.cache_backends.file", "SZFileBackend")
|
|
|
|
subliminal.region.configure(
|
|
|
|
subliminal.region.configure('subzero.cache.file', expiration_time=datetime.timedelta(days=30),
|
|
|
|
'subzero.cache.file',
|
|
|
|
arguments={'appname': "sz_cache", 'app_cache_dir': args.config_dir})
|
|
|
|
expiration_time=datetime.timedelta(days=30),
|
|
|
|
|
|
|
|
arguments={'appname': "sz_cache", 'app_cache_dir': args.config_dir}
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
subliminal.region.backend.sync()
|
|
|
|
subliminal.region.backend.sync()
|
|
|
|
|
|
|
|
|
|
|
|
if not os.path.exists(os.path.join(args.config_dir, 'config', 'releases.txt')):
|
|
|
|
if not os.path.exists(os.path.join(args.config_dir, 'config', 'releases.txt')):
|
|
|
|