Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bunkr. URLs with cdn or cdn3 sends 404 #2788

Closed
GiganticThirstyHerald opened this issue Jul 28, 2022 · 2 comments
Closed

Bunkr. URLs with cdn or cdn3 sends 404 #2788

GiganticThirstyHerald opened this issue Jul 28, 2022 · 2 comments

Comments

@GiganticThirstyHerald
Copy link

On latest release version (1.22.4)

  • All images which has cdn.bunkr.is or cdn3.bunkr.is in url sends 404
  • Vids with media-files.bunkr.is also sends 404

For images I've found quick fix is to replace cdn or cdn3 to cdn4
Same goes for vids, but with vids media-files3 and media-files4 both works

@GiganticThirstyHerald
Copy link
Author

I've manually changed here:
(url.replace("//cdn.", "//cdn3.", 1),) with (url.replace("//cdn.", "//cdn4.", 1),) and
"//media-files.bunkr.is/" with "//media-files4.bunkr.is/" and it worked

def _fetch_album_api(self, album_id):
files, data = LolisafeAlbumExtractor.fetch_album(self, album_id)
for file in files:
url = file["file"]
if url.endswith(".mp4"):
file["file"] = url.replace(
"//cdn.bunkr.is/", "//media-files.bunkr.is/", 1)
else:
file["_fallback"] = (url.replace("//cdn.", "//cdn3.", 1),)

mikf added a commit that referenced this issue Jul 31, 2022
@mikf
Copy link
Owner

mikf commented Jul 31, 2022

Should be fixed in commit 3f08a91, but manually setting domain to app.bunkr.to is likely to still break, since their API doesn't return correct/usable results anymore.

@mikf mikf closed this as completed Sep 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants