Try to match any z-lib domain for now (#117)

Should fix #116
This commit is contained in:
CaliBrain
2025-04-04 13:33:51 -04:00
committed by GitHub
parent d4ba269c3f
commit e29ccb7606
+1 -1
View File
@@ -328,7 +328,7 @@ def _get_download_url(link: str, title: str) -> str:
soup = BeautifulSoup(html, 'html.parser')
if link.startswith("https://z-lib.gs"):
if link.startswith("https://z-lib."):
download_link = soup.find_all('a', href=True, class_="addDownloadedBook")
if download_link:
url = download_link[0]['href']