Skip to content

Bulk asynchronous downloader for multiple file hosts

fix: dict has no attribute server (kemono) (#1546)

Barbarella666666687bc1967d56d
diff --git a/cyberdrop_dl/crawlers/kemono.py b/cyberdrop_dl/crawlers/kemono.py
index fbf45002d..3ea0bd853 100644
--- a/cyberdrop_dl/crawlers/kemono.py
+++ b/cyberdrop_dl/crawlers/kemono.py
@@ -361,13 +361,13 @@ class KemonoBaseCrawler(Crawler, is_abc=True):
# ~~~~~~~~ INTERNAL METHODS, not expected to be overridden, but could be ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- def _register_attachments_servers(self, attachments: list[File]) -> None:
+ def _register_attachments_servers(self, attachments: list[dict[str, str]]) -> None:
for attach in attachments:
- server = attach.server
+ server = attach.get("server")
if not server:
continue
- path = attach.path
+ path = attach.get("path")
if previous_server := self.__known_attachment_servers.get(path):
if previous_server != server:
msg = (