diff --git a/gallery_dl/cache.py b/gallery_dl/cache.py index 38860913..a874f63b 100644 --- a/gallery_dl/cache.py +++ b/gallery_dl/cache.py @@ -210,6 +210,6 @@ try: os.close(os.open(dbfile, os.O_CREAT | os.O_RDONLY, 0o600)) DatabaseCacheDecorator.db = sqlite3.connect( - dbfile, timeout=30, check_same_thread=False) + dbfile, timeout=60, check_same_thread=False) except (OSError, TypeError, sqlite3.OperationalError): cache = memcache # noqa: F811 diff --git a/gallery_dl/util.py b/gallery_dl/util.py index 4c0d17b7..d91d29ad 100644 --- a/gallery_dl/util.py +++ b/gallery_dl/util.py @@ -956,7 +956,7 @@ class PathFormat(): class DownloadArchive(): def __init__(self, path, extractor): - con = sqlite3.connect(path) + con = sqlite3.connect(path, timeout=60, check_same_thread=False) con.isolation_level = None self.close = con.close self.cursor = con.cursor()