Skip to content

Bulk asynchronous downloader for multiple file hosts

chore: update config schema

NTFSvolumea49dbc67be5d
diff --git a/cyberdrop_dl/config/default.yaml b/cyberdrop_dl/config/default.yaml
index 88c282073..ca3ae20af 100644
--- a/cyberdrop_dl/config/default.yaml
+++ b/cyberdrop_dl/config/default.yaml
@@ -26,6 +26,9 @@ crawlers:
- vorbis
- aiff
- alas
+ clonr:
+ use_source: false
+ zip: false
clypit:
prefer_mp3: false
disabled: []
diff --git a/cyberdrop_dl/config/schema.json b/cyberdrop_dl/config/schema.json
index cecfa8ba1..7063fec21 100644
--- a/cyberdrop_dl/config/schema.json
+++ b/cyberdrop_dl/config/schema.json
@@ -119,6 +119,23 @@
"format": "path",
"type": "string"
},
+ "ClonrConfig": {
+ "additionalProperties": false,
+ "properties": {
+ "use_source": {
+ "default": false,
+ "title": "Use Source",
+ "type": "boolean"
+ },
+ "zip": {
+ "default": false,
+ "title": "Zip",
+ "type": "boolean"
+ }
+ },
+ "title": "ClonrConfig",
+ "type": "object"
+ },
"ClypitConfig": {
"additionalProperties": false,
"properties": {
@@ -168,6 +185,9 @@
},
"octave_music": {
"$ref": "#/$defs/OctaveMusicConfig"
+ },
+ "clonr": {
+ "$ref": "#/$defs/ClonrConfig"
}
},
"title": "Crawlers",
diff --git a/cyberdrop_dl/crawlers/clonr.py b/cyberdrop_dl/crawlers/clonr.py
index b43759699..19188feec 100644
--- a/cyberdrop_dl/crawlers/clonr.py
+++ b/cyberdrop_dl/crawlers/clonr.py
@@ -66,7 +66,7 @@ class ClonrCrawler(Crawler):
@error_handling_wrapper
async def _file(self, scrape_item: ScrapeItem, file: File) -> None:
if file["state"] != "done":
- self.log.warning("Ignoring file [%s] %s", file["state"], file["name"])
+ self.log.warning("Ignoring file [%s] '%s'", file["state"], file["name"])
return
src = self.parse_url(file["url"])