fix
This commit is contained in:
parent
78d19e1e51
commit
1ea1942166
@ -124,8 +124,8 @@ class ImgDownloadPipeline(BaseImagesPipeline):
|
|||||||
"""
|
"""
|
||||||
cbz_path = super().get_file_path(item, result_type="cbz")
|
cbz_path = super().get_file_path(item, result_type="cbz")
|
||||||
chapter_dir = ComicPath(item=item).file_path(result_type=ComicPath().MAPPING_IMAGES_DIR)
|
chapter_dir = ComicPath(item=item).file_path(result_type=ComicPath().MAPPING_IMAGES_DIR)
|
||||||
# images_file = oldUtils().old_images(folder=chapter_dir)
|
images_file = oldUtils().old_images(folder=chapter_dir)
|
||||||
# if len(images_file) != len(ComicLoader(item=item).get_image_urls()): return
|
if len(images_file) != len(ComicLoader(item=item).get_image_urls()): return
|
||||||
if fu.exists(cbz_path):
|
if fu.exists(cbz_path):
|
||||||
#self.update_icon(item)
|
#self.update_icon(item)
|
||||||
chapter = os.path.basename(cbz_path).split(".")[0]
|
chapter = os.path.basename(cbz_path).split(".")[0]
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
import scrapy,logging,time,os,skip
|
import scrapy,logging,os,skip
|
||||||
from Comics.items import ComicItem
|
from Comics.items import ComicItem
|
||||||
from Comics.loader import ComicLoader
|
from Comics.loader import ComicLoader
|
||||||
from Comics.utils import ComicPath
|
from Comics.utils import ComicPath
|
||||||
|
|||||||
@ -14,9 +14,11 @@ from tinydb import TinyDB, Query
|
|||||||
|
|
||||||
# 配置类
|
# 配置类
|
||||||
class Conf():
|
class Conf():
|
||||||
|
"""
|
||||||
# 读取yml文件配置
|
# 读取yml文件配置
|
||||||
# @project 根据工程名读取配置 project.yml
|
# @project 根据工程名读取配置 project.yml
|
||||||
# @key 读取key内的字典的数据(默认为空)
|
# @key 读取key内的字典的数据(默认为空)
|
||||||
|
"""
|
||||||
#def init(self, project, key=None):
|
#def init(self, project, key=None):
|
||||||
# data = None
|
# data = None
|
||||||
# if project == None: project = "config"
|
# if project == None: project = "config"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user