Bulk asynchronous downloader for multiple file hosts
Python asynciobunkrcyberdropdownloaderdropboxfilestergofilegoogle-drivemediafiremegamega-nzonedrivepatreonpawchivepinterestpixeldraintransfer-ittwitchtwittervk
fix: update selectors (spankbang) (#2011)
NTFSvolumefb2e1642af1f
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex a282be49a..cccdaa399 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -29,6 +29,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0- Remove hardcoded limit of 1 concurrent download per server (Bunkr)- Do not dedupe files that were not downloaded in the current session+### Fixed++- No videos detected on profiles, playlists or search results (Spankbang)+## [10.0.2] - 2026-07-05### Fixeddiff --git a/cyberdrop_dl/crawlers/spankbang.py b/cyberdrop_dl/crawlers/spankbang.pyindex 6c9c16efd..ae4c49f2b 100644--- a/cyberdrop_dl/crawlers/spankbang.py+++ b/cyberdrop_dl/crawlers/spankbang.py@@ -1,7 +1,7 @@from __future__ import annotationsimport dataclasses-from typing import TYPE_CHECKING, ClassVar+from typing import TYPE_CHECKING, ClassVar, finalfrom cyberdrop_dl import aiofrom cyberdrop_dl.crawlers.crawler import Crawler, RateLimit, SupportedPaths@@ -19,16 +19,20 @@ if TYPE_CHECKING:from cyberdrop_dl.url_objects import ScrapeItem+@finalclass Selector:STREAM_DATA = ".main-container script:-soup-contains('var stream_data')"PLAYLIST_TITLE = "[data-testid=playlist-title]"NEXT_PAGE = ".pagination li.next > a[href]"VIDEO_REMOVED = "#video_removed, .video_removed"+ _playlist, _video = ".js-video-item > a[href*='/playlist/']", ".js-video-item > a[href*='/video/']"VIDEOS = ", ".join((- ".video-list > .video-item > a[href]",- "[data-testid=search-result] [data-testid=video-item] > a[href]",+ "#search_v2 " + _playlist,+ "#search_v2 " + _video,+ "#search_page " + _playlist,+ "#search_page " + _video,))diff --git a/tests/crawlers/test_cases/spankbang.py b/tests/crawlers/test_cases/spankbang.pyindex 5f52ab35e..0f79c7220 100644--- a/tests/crawlers/test_cases/spankbang.py+++ b/tests/crawlers/test_cases/spankbang.py@@ -5,7 +5,7 @@ TEST_CASES = ["results": [{"url": "re:https://vdownload.+16371508-1080p.mp4\\?.+_tid=16371508",- "filename": "WIFE FOR FREE USE . Devil Khloee [9qwc4][1080p].mp4",+ "filename": "WIFE FOR FREE USE. Devil Khloee [9qwc4][1080p].mp4","referer": "https://spankbang.com/9qwc4/video/wife+for+free+use+devil+khloee","album_id": None,"uploaded_at": None,@@ -13,53 +13,54 @@ TEST_CASES = [],},{- "url": "https://spankbang.com/9ndp4/video/korean+dance",+ "url": "https://fr.spankbang.com/9lcld/video/3364+kbj+korean","results": [{- "url": "re:/1/6/16207384-4k.mp4",- "filename": "Korean dance [9ndp4][4K].mp4",- "debrid_url": None,- "original_filename": "Korean dance",- "referer": "https://spankbang.com/9ndp4/video/korean+dance",- "album_id": None,- "uploaded_at": None,- "download_folder": "re:Loose Files (SpankBang)",+ "url": "re:/1/6/16112641-4k.mp4",+ "original_filename": "3364 KBJ 벗방 팬방 여캠 딥쓰롯 리액션 저게 다들어가네 ㅋㅋ Korean",+ "referer": "https://spankbang.com/9lcld/video/3364+kbj+korean",}],},{- "url": "https://fr.spankbang.com/9ndp4/video/korean+dance",+ "url": "https://jp.spankbang.com/9lcld/video/3364+kbj+korean","results": [{- "url": "re:/1/6/16207384-4k.mp4",- "original_filename": "Korean dance",- "referer": "https://spankbang.com/9ndp4/video/korean+dance",+ "url": "re:/1/6/16112641-4k.mp4",+ "original_filename": "3364 KBJ 벗방 팬방 여캠 딥쓰롯 리액션 저게 다들어가네 ㅋㅋ Korean",+ "referer": "https://spankbang.com/9lcld/video/3364+kbj+korean",}],},{- "url": "https://jp.spankbang.com/9ndp4/video/korean+dance",+ "url": "https://de.spankbang.com/profile/fmsh7827/videos","results": [{- "url": "re:/1/6/16207384-4k.mp4",- "original_filename": "Korean dance",- "referer": "https://spankbang.com/9ndp4/video/korean+dance",+ "url": "re:/1/4/14308081-480p.mp4",+ "filename": "kbj1561 [8io6p][480p].mp4",+ "debrid_url": None,+ "original_filename": "kbj1561",+ "referer": "https://spankbang.com/8io6p/video/kbj1561",+ "album_id": None,+ "uploaded_at": None,+ "download_folder": "re:fmsh7827 [user] (SpankBang)",}],+ "count": 1,},{- "url": "https://spankbang.com/a0cyk-rb6ofs/playlist/korbj",+ "url": "https://spankbang.com/a0cyk-tsmnwz/playlist/korbj","results": [{- "url": "re:/1/6/16207384-4k.mp4",- "original_filename": "Korean dance",- "referer": "https://spankbang.com/9ndp4/video/korean+dance",+ "url": "re:/1/4/14234633-480p.mp4",+ "original_filename": "korean",+ "referer": "https://spankbang.com/8h3ih/video/korean",}],},{"url": "https://de.spankbang.com/a0cyk/playlist/korbj","results": [{"url": "ANY", "download_folder": "re:Korbj [playlist] (SpankBang)"}],- "count": range(180, 220),+ "count": range(240, 260),},]