Don't check downloads db when repairing

This commit is contained in:
Nathan Thomas 2021-08-15 12:47:30 -07:00
parent 587739b109
commit 5d9b925822

View file

@ -5,10 +5,10 @@ import html
import logging import logging
import os import os
import re import re
import threading
from getpass import getpass from getpass import getpass
from hashlib import md5 from hashlib import md5
from string import Formatter from string import Formatter
import threading
from typing import Dict, Generator, List, Optional, Tuple, Type, Union from typing import Dict, Generator, List, Optional, Tuple, Type, Union
import requests import requests
@ -248,6 +248,7 @@ class RipCore(list):
if max_items is None: if max_items is None:
max_items = float("inf") max_items = float("inf")
self.db = db.Downloads(None, dummy=True)
if self.failed_db.is_dummy: if self.failed_db.is_dummy:
secho( secho(
"Failed downloads database must be enabled in the config file " "Failed downloads database must be enabled in the config file "