mirror of
https://github.com/EstrellaXD/Auto_Bangumi.git
synced 2026-03-20 20:07:15 +08:00
feat: add local cache poster.
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user