Merge branch 'fix/gofile' into main

This commit is contained in:
shayaa
2026-03-11 22:26:10 +01:00
committed by GitHub
5 changed files with 37 additions and 22 deletions
+6 -8
View File
@@ -69,10 +69,6 @@ def scrape_steamrip_game_downloads(gamelink):
download_links[0] = "https:" + pure
if pure[2] == "g":
download_links[1] = "https:" + pure
if pure[2] == "v":
download_links[2] = "https:" + pure
if pure[2] == "m":
download_links[3] = "https:" + pure
ret = []
@@ -94,13 +90,15 @@ def get_download_link(post: Dict):
break
if links.index(best) == 0:
return scrape_buzzheavier(best)
link = scrape_buzzheavier(best)
return link
elif links.index(best) == 1:
return scrape_gofile(best)
link, headers = scrape_gofile(best)
return link, headers
else:
consoleLog("Unable to retrieve download link due to captcha, launching browser...")
webbrowser.open(best)
return None
return None, None
def filter_steamrip(query: str):
games = scrape_steamrip_links()
@@ -121,4 +119,4 @@ Metadata = {
}
def init_steamrip():
state.trackers.update({Metadata["name"] : Metadata})
state.trackers.update({Metadata["name"] : Metadata})