every menu works, now the downloads need fixing

This commit is contained in:
nosch
2026-03-08 01:42:59 +01:00
parent 75e4da33eb
commit d8fec74de1
7 changed files with 72 additions and 30 deletions
+1 -1
View File
@@ -47,9 +47,9 @@ def _get_telegram_posts():
if post_url not in added:
added.add(post_url)
posts.append(dict(
title=title,
author="m0nkrus",
id=len(posts) + 1,
title=title,
url=post_url
))
+15 -1
View File
@@ -9,8 +9,22 @@ def scrape_rutracker(query):
consoleLog("[core.data.scrapers.rutracker] Sent request to server")
if search:
_, data, _, _, _ = split_data(search.text)
sorteddata = []
return data
for entry in data:
sorteddata.append(
{
"title" : entry["title"],
"author" : entry["author"],
"seeders" : entry["seeders"],
"leechers" : entry["leechers"],
"url" : entry["url"],
"id" : entry["id"],
}
)
return sorteddata
else:
consoleLog("[core.data.scrapers.rutracker] No search Text, returning nothing")
return []
+1 -1
View File
@@ -98,7 +98,7 @@ def filter_steamrip(query: str):
Metadata = {
"name" : "steamrip",
"headers" : ["Game", "Available Downloads"],
"headers" : ["Game"],
"scrapeFunc" : filter_steamrip,
}
+1 -1
View File
@@ -29,8 +29,8 @@ def scrape_uztracker(query):
posts.append(dict(
title=title,
author=author,
url=url,
author=author
))
return posts