mirror of
https://github.com/EstrellaXD/Auto_Bangumi.git
synced 2026-05-12 19:16:47 +08:00
fix: 无法启动的问题
This commit is contained in:
@@ -78,13 +78,8 @@ class Checker:
|
||||
@staticmethod
|
||||
def check_img_cache() -> bool:
|
||||
img_path = Path("data/posters")
|
||||
if img_path.exists():
|
||||
# If poster folder is not empty, return True
|
||||
if list(img_path.glob("*")):
|
||||
return True
|
||||
else:
|
||||
img_path.mkdir()
|
||||
return False
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
# print(Checker().check_downloader())
|
||||
requests.get("http://162.200.20.1", timeout=2)
|
||||
|
||||
Reference in New Issue
Block a user