Skip to content

Bulk asynchronous downloader for multiple file hosts

Fix kemono next page.

Jules-WinnfieldX04b4a9b33b28
diff --git a/README.md b/README.md
index 9f27846bc..990a61cdc 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,7 @@
# `cyberdrop-dl`
**Bulk downloader for multiple file hosts**
-The latest version of the program is 3.4.19
+The latest version of the program is 3.4.21
<a href="https://www.buymeacoffee.com/juleswinnft" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/default-orange.png" alt="Buy Me A Coffee" height="41" width="174"></a>
diff --git a/changelog.txt b/changelog.txt
index 3c17a1c97..5b16048ce 100644
--- a/changelog.txt
+++ b/changelog.txt
@@ -17,4 +17,8 @@
- A bunch including:
- Fixing some of kemono.party
- Fixing bunkr albums
-- Simplifying requirements
\ No newline at end of file
+- Simplifying requirements
+
+3.4.21
+- Better gofile exception handling
+- Fix kemono next page
\ No newline at end of file
diff --git a/cyberdrop_dl/__init__.py b/cyberdrop_dl/__init__.py
index e6c01cfce..3ac039bf3 100644
--- a/cyberdrop_dl/__init__.py
+++ b/cyberdrop_dl/__init__.py
@@ -1 +1 @@
-__version__ = "3.4.19"
+__version__ = "3.4.21"
diff --git a/cyberdrop_dl/crawlers/GoFile_Spider.py b/cyberdrop_dl/crawlers/GoFile_Spider.py
index eed9ae3cb..e92b6ec81 100644
--- a/cyberdrop_dl/crawlers/GoFile_Spider.py
+++ b/cyberdrop_dl/crawlers/GoFile_Spider.py
@@ -53,7 +53,10 @@ class GofileCrawler():
contents: dict[str, dict[str, Union[str, int]]] = content["contents"]
for val in contents.values():
if val["type"] == "folder":
- results.extend(result for result in await self.get_links(URL(val["code"]), title))
+ try:
+ results.extend(result for result in await self.get_links(URL(val["code"]), title))
+ except Exception as e:
+ await log(f"Error scraping gofile: {val['code']}")
else:
results.append({'url': URL(val["link"]) if val["link"] != "overloaded" else URL(val["directLink"]),
'title': title, 'referral': URL('https://gofile.io/')})
diff --git a/cyberdrop_dl/crawlers/Kemono_Spider.py b/cyberdrop_dl/crawlers/Kemono_Spider.py
index 16a667127..72d8d9ce6 100644
--- a/cyberdrop_dl/crawlers/Kemono_Spider.py
+++ b/cyberdrop_dl/crawlers/Kemono_Spider.py
@@ -47,7 +47,7 @@ class KemonoCrawler:
post_link = URL("https://kemono.party" + path)
results.extend(await self.parse_post(session, post_link, title))
- next_page = soup.select_one('a[title="Next page"]')
+ next_page = soup.select_one('a[class=next]')
if next_page:
next_page = next_page.get('href')
if next_page: