added functionality for pixiv and deviantart
This commit is contained in:
@@ -171,6 +171,23 @@ class GalleryDLService:
|
||||
# Deep crawling options
|
||||
"threads": True, # Include thread content for complete history
|
||||
},
|
||||
"pixiv": {
|
||||
"content_types": ["all"],
|
||||
"directory": ["{category}"],
|
||||
"filename": "{id}_{title[:50]}_{num:>02}.{extension}",
|
||||
# Content options
|
||||
"ugoira": True, # Download ugoira (animated) as WebM
|
||||
},
|
||||
"deviantart": {
|
||||
"content_types": ["all"],
|
||||
"directory": [], # Flat structure within platform folder
|
||||
"filename": "{index:>03}_{title[:50]}.{extension}",
|
||||
# Content options
|
||||
"flat": True, # Flatten folder structure
|
||||
"original": True, # Download original quality
|
||||
"mature": True, # Include mature content
|
||||
"metadata": True, # Include metadata
|
||||
},
|
||||
}
|
||||
|
||||
def __init__(self, rate_limit: Optional[float] = None):
|
||||
@@ -682,6 +699,10 @@ class GalleryDLService:
|
||||
return ["all"] # No granular control
|
||||
elif platform == "discord":
|
||||
return ["all"] # No granular control
|
||||
elif platform == "pixiv":
|
||||
return ["all", "illusts", "manga", "bookmarks"]
|
||||
elif platform == "deviantart":
|
||||
return ["all", "gallery", "scraps", "favorites"]
|
||||
else:
|
||||
return ["all"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user