Skip to content

Bulk asynchronous downloader for multiple file hosts

feat: add support for encoded URLs from input file

NTFSvolume51ff14538b3e
diff --git a/cyberdrop_dl/scraper/scraper.py b/cyberdrop_dl/scraper/scraper.py
index e2950d3a7..45f451449 100644
--- a/cyberdrop_dl/scraper/scraper.py
+++ b/cyberdrop_dl/scraper/scraper.py
@@ -317,7 +317,8 @@ class ScrapeMapper:
all_links = [x.group().replace(".md.", ".") for x in re.finditer(
r"(?:http.*?)(?=($|\n|\r\n|\r|\s|\"|\[/URL]|']\[|]\[|\[/img]))", line)]
for link in all_links:
- yarl_links.append(URL(link))
+ encoded = "%" in link
+ yarl_links.append(URL(link, encoded = encoded))
return yarl_links
async def load_links(self) -> None: