Skip to content

Bulk asynchronous downloader for multiple file hosts

Coomeno will now pull proper filenames

Jules-WinnfieldX094f28019987
diff --git a/cyberdrop_dl/crawlers/Coomeno_Spider.py b/cyberdrop_dl/crawlers/Coomeno_Spider.py
index 5901434a7..5537e0222 100644
--- a/cyberdrop_dl/crawlers/Coomeno_Spider.py
+++ b/cyberdrop_dl/crawlers/Coomeno_Spider.py
@@ -1,6 +1,7 @@
from __future__ import annotations
import asyncio
+import urllib
from dataclasses import dataclass, field
from typing import TYPE_CHECKING, Union, List
@@ -234,4 +235,8 @@ class CoomenoCrawler:
href = "https://" + url.host + href
link = URL(href)
media_item = await create_media_item(link, url, self.SQL_Helper, domain)
+ if "download" in tag.attrs:
+ filename = urllib.parse.unquote(tag.get('download'))
+ media_item.filename = filename
+
await cascade.add_to_album(domain, title, media_item)