Skip to content

Bulk asynchronous downloader for multiple file hosts

Fix for Bunkr.to. Wasn't properly handing video extensions other than .mov

Mitch Petersen7a015c929882
diff --git a/URLs.txt b/URLs.txt
index e69de29bb..debb119ec 100644
--- a/URLs.txt
+++ b/URLs.txt
@@ -0,0 +1 @@
+https://bunkr.to/a/t0NBpfj8
\ No newline at end of file
diff --git a/geturls.py b/geturls.py
index dce7d4ce3..6a09926f7 100644
--- a/geturls.py
+++ b/geturls.py
@@ -26,7 +26,8 @@ def Extrair_Links(baseURL):
elif 'bunk' in baseURL.lower():
for link in soup.find_all(class_="image"):
lis = link.get('href')
- if '.mp4' in lis:
+ check = [ext for ext in videoExtensions if (ext in lis)]
+ if bool(check):
lis = lis.replace('https://cdn.bunkr.to/', 'https://stream.bunkr.to/d/')
links.append(lis)