PyComicPackRouMan/domain/Domains.py
2023-04-04 06:29:49 +08:00

12 lines
475 B
Python
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

from domain.down.Baozi import DomainDown as baozi
from domain.down.RouMan import DomainDown as rouman
from common.Constant import pathStr
class domains:
@classmethod
def setdomain(cls,url):
comic_main = pathStr.getComicMain()
if comic_main == pathStr.comic_bz: baozi.comicChapterDownload(url)
if comic_main == pathStr.comic_rm: rouman.comicChapterDownload(url)
if comic_main == None: print("comic_main为空退出中...") & exit()