Skip to content

Bulk asynchronous downloader for multiple file hosts

fix: imgbb crawler

NTFSvolume3e0c246e9aff
diff --git a/cyberdrop_dl/scraper/crawlers/imgbb_crawler.py b/cyberdrop_dl/scraper/crawlers/imgbb_crawler.py
index 7f0712bc7..c6491c25b 100644
--- a/cyberdrop_dl/scraper/crawlers/imgbb_crawler.py
+++ b/cyberdrop_dl/scraper/crawlers/imgbb_crawler.py
@@ -3,7 +3,7 @@ from __future__ import annotations
import calendar
import datetime
import re
-from typing import TYPE_CHECKING
+from typing import TYPE_CHECKING, ClassVar
from yarl import URL
@@ -18,10 +18,11 @@ if TYPE_CHECKING:
class ImgBBCrawler(Crawler):
+ SUPPORTED_SITES: ClassVar[dict[str, list]] = {"imgbb": ["ibb.co", "imgbb.co"]}
primary_base_domain = URL("https://ibb.co")
- def __init__(self, manager: Manager) -> None:
- super().__init__(manager, "imgbb", "ImgBB")
+ def __init__(self, manager: Manager, site: str) -> None:
+ super().__init__(manager, site, "ImgBB")
"""~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"""