Skip to content

Bulk asynchronous downloader for multiple file hosts

fix: send referer for m3u8 downloads (PornHub)

NTFSvolume93180ab82cd6
diff --git a/cyberdrop_dl/crawlers/pornhub.py b/cyberdrop_dl/crawlers/pornhub.py
index 2e66bd297..b112dba4b 100644
--- a/cyberdrop_dl/crawlers/pornhub.py
+++ b/cyberdrop_dl/crawlers/pornhub.py
@@ -269,7 +269,7 @@ class PornHubCrawler(Crawler):
debrid_link = self.parse_url(best_format.url)
if use_hls or best_format is None:
- m3u8, _ = await self.request_m3u8_playlist(self.parse_url(best_hls.url))
+ m3u8, _ = await self.request_m3u8_playlist(self.parse_url(best_hls.url), headers={"Referer": str(page_url)})
best_format = best_hls
scrape_item.url = page_url