[bunkr] fix video downloads (#3326)

by sending 'https://stream.bunkr.is/' as Referer header
This commit is contained in:
Mike Fährmann
2022-11-30 15:10:31 +01:00
parent 86a396e086
commit fc34f76cc5
2 changed files with 5 additions and 5 deletions

View File

@@ -83,6 +83,7 @@ class BunkrAlbumExtractor(LolisafeAlbumExtractor):
cdn = file["cdn"]
if name.endswith((".mp4", ".m4v", ".mov")):
cdn = cdn.replace("//cdn", "//media-files")
file["_http_headers"] = {"Referer": "https://stream.bunkr.is/"}
file["file"] = cdn + "/" + name
return files, {