Bulk asynchronous downloader for multiple file hosts
Python asynciobunkrcyberdropdownloaderdropboxfilestergofilegoogle-drivemediafiremegamega-nzonedrivepatreonpawchivepinterestpixeldraintransfer-ittwitchtwittervk
fix: download files with no hash information (Filester)
NTFSvolume4d25b8e039e5
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 95c516d09..83d460908 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -44,6 +44,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0- Some URLs being wrongly skipped as duplicates when using any of the `retry` options if they came from the same collection/folder/album.This affected sites where multiple files may share identical URL path and query, with the fragment being what uniquely identifies each file (Mega.nz, Koofr, Transfer.it)- Download URL extraction (BuzzHeavier)+- Download of file with no hash information (Filester)## [10.2.1] - 2026-07-21diff --git a/cyberdrop_dl/crawlers/filester.py b/cyberdrop_dl/crawlers/filester.pyindex 90a96710b..5845499f3 100644--- a/cyberdrop_dl/crawlers/filester.py+++ b/cyberdrop_dl/crawlers/filester.py@@ -3,7 +3,7 @@ from __future__ import annotationsimport base64import dataclassesimport time-from typing import TYPE_CHECKING, ClassVar, final+from typing import TYPE_CHECKING, ClassVar, Literal, finalfrom cyberdrop_dl import aiofrom cyberdrop_dl.clients.http import HTTPConfig@@ -58,6 +58,10 @@ class FilesterCrawler(Crawler):soup = await self._request_soup_w_pass(scrape_item.url, scrape_item.password)file = _parse_file(soup)++ if file.hash and await self.check_complete_by_hash(scrape_item.url, file.hash.algo, file.hash.cheksum):+ return+scrape_item.uploaded_at = self.parse_iso_date(file.uploaded_at)filename, ext = self.get_filename_and_ext(file.name, mime_type=file.mime_type)@@ -135,13 +139,18 @@ class FilesterCrawler(Crawler):return soup[email protected](slots=True)+class Hash:+ algo: Literal["md5", "sha256"]+ cheksum: str++@dataclasses.dataclass(slots=True)class File:name: struploaded_at: strmime_type: str- hash_algo: str- checksum: str+ hash: Hash | None = Noneclass FilesterAPI(API):@@ -181,15 +190,19 @@ def _parse_file(soup: BeautifulSoup) -> File:def file_attr(name: str) -> str:return css.select_text(file_details, f"span:-soup-contains({name}) + span")+ hash_ = None+try:- hash_algo, checksum = "sha256", file_attr("SHA-256")+ hash_ = Hash("sha256", file_attr("SHA-256"))except css.SelectorError:- hash_algo, checksum = "md5", file_attr("MD5")+ try:+ hash_ = Hash("md5", file_attr("MD5"))+ except css.SelectorError:+ passreturn File(name=open_graph.title(soup),- hash_algo=hash_algo,- checksum=checksum,+ hash=hash_,uploaded_at=file_attr("Uploaded"),mime_type=file_attr("Type"),)diff --git a/tests/crawlers/test_cases/filester.py b/tests/crawlers/test_cases/filester.pyindex 4d234cbb9..cb215cf8d 100644--- a/tests/crawlers/test_cases/filester.py+++ b/tests/crawlers/test_cases/filester.py@@ -12,6 +12,23 @@ TEST_CASES = [}],},+ {+ "url": "https://filester.me/d/QBuVgJv",+ "description": "file without hash information on the page",+ "results": [+ {+ "url": "https://filester.me/d/QBuVgJv",+ "filename": "A Good Show.mp4",+ "debrid_url": None,+ "original_filename": "A Good Show.mp4",+ "referer": "https://filester.me/d/QBuVgJv",+ "album_id": None,+ "uploaded_at": 1782345600,+ "download_folder": "re:Loose Files (Filester)",+ }+ ],+ "count": 1,+ },{"url": "https://filester.si/d/4h9lQtR","results": [