Skip to content

Commit

Permalink
perfect(logo):将LOGO移至extensions模块内
Browse files Browse the repository at this point in the history
  • Loading branch information
Akimio521 committed Jul 22, 2024
1 parent e9724b4 commit 747c875
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
1 change: 1 addition & 0 deletions app/extensions/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@
IMAGE_EXTS,
NFO_EXTS,
)
from app.extensions.logo import LOGO
8 changes: 8 additions & 0 deletions app/extensions/logo.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
LOGO = r"""
█████╗ ██╗ ██╗████████╗ ██████╗ ███████╗██╗██╗ ███╗ ███╗
██╔══██╗██║ ██║╚══██╔══╝██╔═══██╗██╔════╝██║██║ ████╗ ████║
███████║██║ ██║ ██║ ██║ ██║█████╗ ██║██║ ██╔████╔██║
██╔══██║██║ ██║ ██║ ██║ ██║██╔══╝ ██║██║ ██║╚██╔╝██║
██║ ██║╚██████╔╝ ██║ ╚██████╔╝██║ ██║███████╗██║ ╚═╝ ██║
╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝
"""
11 changes: 2 additions & 9 deletions app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,12 @@
from apscheduler.triggers.cron import CronTrigger

from app.core import settings, logger
from app.extensions import LOGO
from app.modules import Alist2Strm, Ani2Alist

LOGO = r"""
█████╗ ██╗ ██╗████████╗ ██████╗ ███████╗██╗██╗ ███╗ ███╗
██╔══██╗██║ ██║╚══██╔══╝██╔═══██╗██╔════╝██║██║ ████╗ ████║
███████║██║ ██║ ██║ ██║ ██║█████╗ ██║██║ ██╔████╔██║
██╔══██║██║ ██║ ██║ ██║ ██║██╔══╝ ██║██║ ██║╚██╔╝██║
██║ ██║╚██████╔╝ ██║ ╚██████╔╝██║ ██║███████╗██║ ╚═╝ ██║
╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝
""" + str(settings.APP_VERSION).center(65, "=")

if __name__ == "__main__":
print(LOGO)
print(LOGO + str(settings.APP_VERSION).center(65, "="))
logger.info(f"AutoFilm {settings.APP_VERSION}启动中...")

scheduler = AsyncIOScheduler()
Expand Down

0 comments on commit 747c875

Please sign in to comment.