update
This commit is contained in:
1 parent
7672b7c84b
commit
4b7110b1ae
1 file changed
+2
-2
+2
-2
@@ -38,13 +38,13 @@ class ImgDownloadPipeline(ImagesPipeline):
|
|||||||
elif result_type == "comic_info":
|
elif result_type == "comic_info":
|
||||||
file = os.path.join(item[settings.PROJECT_KEY], "images", item['name'], item['chapter'])
|
file = os.path.join(item[settings.PROJECT_KEY], "images", item['name'], item['chapter'])
|
||||||
elif result_type == "cbz_icon":
|
elif result_type == "cbz_icon":
|
||||||
file = os.path.join("CBZ", item[settings.PROJECT_KEY], item['name'], item['chapter']+".jpg")
|
file = os.path.join(CBZ_EXPORT_PATH, item[settings.PROJECT_KEY], item['name'], item['chapter']+".jpg")
|
||||||
elif result_type == "down_icon":
|
elif result_type == "down_icon":
|
||||||
file = self.download_icon(item,result_type='fullpath')
|
file = self.download_icon(item,result_type='fullpath')
|
||||||
elif result_type == "icon":
|
elif result_type == "icon":
|
||||||
file = os.path.join(item[settings.PROJECT_KEY], "icons", item['name'], item['chapter']+".jpg")
|
file = os.path.join(item[settings.PROJECT_KEY], "icons", item['name'], item['chapter']+".jpg")
|
||||||
elif result_type == "cbz":
|
elif result_type == "cbz":
|
||||||
file = os.path.join("CBZ", item[settings.PROJECT_KEY], item['name'], item['chapter']+".CBZ")
|
file = os.path.join(CBZ_EXPORT_PATH, item[settings.PROJECT_KEY], item['name'], item['chapter']+".CBZ")
|
||||||
elif result_type == "images_dir":
|
elif result_type == "images_dir":
|
||||||
file = os.path.join(settings.IMAGES_STORE, item[settings.PROJECT_KEY], "images", item['name'], item['chapter'])
|
file = os.path.join(settings.IMAGES_STORE, item[settings.PROJECT_KEY], "images", item['name'], item['chapter'])
|
||||||
return file
|
return file
|
||||||
|
|||||||
Reference in new issue
Block a user