This commit is contained in:
cwx
2023-01-14 17:49:40 +08:00
parent d56ddc9342
commit fa0e929a1a
9 changed files with 267 additions and 9 deletions
+11 -2
View File
@@ -39,6 +39,7 @@ class comicInfo():
str_web = None
str_list_img = None
str_files_img = None
str_value1 = None
chapter_node = None
comicName_node = None
@@ -132,6 +133,14 @@ class comicInfo():
def setChapterListImg(cls,value):
cls.str_list_img=value
@classmethod
def setValue1(cls,value):
cls.str_value1 = value
@classmethod
def getValue1(cls):
return cls.str_value1
@classmethod
def getChapterListImg(cls):
return cls.str_list_img
@@ -252,7 +261,7 @@ class comicInfo():
@classmethod
def getDirCBZComic(cls):
if not cls.str_comicName == None:
return os.path.join(pathStr.base_CBZ, cls.str_comicName)
return os.path.join(pathStr.base_cbz, cls.str_comicName)
else:
print("comicName不存在,退出中")
exit()
@@ -260,7 +269,7 @@ class comicInfo():
@classmethod
def getDirCBZComicChapter(cls):
if not cls.str_comicName == None and not cls.str_chapter == None:
return os.path.join(pathStr.base_CBZ,cls.str_comicName,cls.str_chapter)
return os.path.join(pathStr.base_cbz,cls.str_comicName,cls.str_chapter)
else:
print("comicName不存在,退出中")
exit()
+9 -2
View File
@@ -1,16 +1,23 @@
import os,datetime
from time import strftime
class pathStr:
comic_url_main = None
#base_comic_out = "COMICOUT"
#base_comic_out = os.path.join("/mnt", "bigTComics","JM")
if comic_url_main != None:
base_comic_out = os.path.join("/mnt", "bigTComics", comic_url_main)
base_comic_out = os.path.join("/mnt", "bigTComics")
base_CBZ = os.path.join(base_comic_out,"CBZ")
base_cbz = os.path.join(base_comic_out,"CBZ")
base_comic_img = os.path.join(base_comic_out,"outputComic")
base_conf_path = os.path.join(base_comic_out,".conf")
base_html_cache = os.path.join(base_comic_out,"html_cache")
base_html_chapter = os.path.join(base_comic_out,"html_updated")
base_comic_update = os.path.join(base_conf_path,"comic_update")
@classmethod
def setComicMainPath(cls,value):
cls.comic_url_main = value
@classmethod
def base_html_week(cls):
date_path = cls.getDatePath()