feat: add local cache poster.

This commit is contained in:
EstrellaXD
2023-10-04 16:56:07 +08:00
parent efa199979e
commit fb721d25dc
11 changed files with 64 additions and 10 deletions

View File

@@ -2,7 +2,7 @@ import logging
from module.conf import VERSION, settings
from module.models import ResponseModel
from module.update import data_migration, first_run, from_30_to_31, start_up
from module.update import data_migration, first_run, from_30_to_31, start_up, cache_image
from .sub_thread import RenameThread, RSSThread
@@ -46,6 +46,9 @@ class Program(RenameThread, RSSThread):
# Update database
from_30_to_31()
logger.info("[Core] Database updated.")
if not self.img_cache:
logger.info("[Core] No image cache exists, create image cache.")
cache_image()
self.start()
def start(self):