Skip to content

Bulk asynchronous downloader for multiple file hosts

fix: Download of albums with 45+ items (Fileditch)

NTFSvolume7ea18fb1429f
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 31d5e68cc..e56b30672 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -66,6 +66,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Attachments detection (Discourse)
- Some download errors always being reported as `TimeoutError`
- Challenge detection (Fileditch)
+- Download of albums with 45+ items (Fileditch)
## [10.11.1] - 2026-10-11
diff --git a/cyberdrop_dl/crawlers/fileditch.py b/cyberdrop_dl/crawlers/fileditch.py
index 24abb45ec..7dc025b01 100644
--- a/cyberdrop_dl/crawlers/fileditch.py
+++ b/cyberdrop_dl/crawlers/fileditch.py
@@ -4,7 +4,7 @@ import base64
import dataclasses
from typing import TYPE_CHECKING, ClassVar, override
-from cyberdrop_dl import env
+from cyberdrop_dl import aio, env
from cyberdrop_dl.clients.http import HTTPConfig
from cyberdrop_dl.constants import FileExt
from cyberdrop_dl.crawlers import Registry
@@ -128,6 +128,15 @@ class FileditchAlbumsCrawler(Crawler):
PRIMARY_URL: ClassVar[AbsoluteHttpURL] = AbsoluteHttpURL("https://fileditchalbums.st")
DOMAIN: ClassVar[str] = "fileditchalbums"
FOLDER_DOMAIN: ClassVar[str] = FileditchCrawler.FOLDER_DOMAIN
+ NEXT_PAGE_SELECTOR: ClassVar[str] = "a[rel=next]:-soup-contains('›')" # noqa: RUF001
+
+ def __post_init__(self) -> None:
+ self.update_cookies({"fda_pp": 120}) # items per page
+
+ @classmethod
+ @override
+ def transform_url(cls, url: AbsoluteHttpURL) -> AbsoluteHttpURL:
+ return super().transform_url(url).without_query_params("p", "page")
async def fetch(self, scrape_item: ScrapeItem) -> None:
match scrape_item.url.parts[1:]:
@@ -138,12 +147,13 @@ class FileditchAlbumsCrawler(Crawler):
@error_handling_wrapper
async def album(self, scrape_item: ScrapeItem, album_id: str) -> None:
- soup = await self.request_soup(scrape_item.url)
+ soup, pages = await aio.peek_first(self.web_pager(scrape_item.url))
name = self.create_title(css.select_text(soup, "h1.title"))
scrape_item.setup_as_album(name, album_id=album_id)
- for new_item in self.iter_children(scrape_item, soup, ".grid article.card > a.thumb[href]"):
- self.handle_embed(new_item)
- scrape_item.add_children()
+ async for soup in pages:
+ for new_item in self.iter_children(scrape_item, soup, ".grid article.card > a.thumb[href]"):
+ self.handle_embed(new_item)
+ scrape_item.add_children()
def _extr_thumb(soup: bs4.Tag) -> str | None: