mirror of
https://github.com/moraroy/NonSteamLaunchers-On-Steam-Deck.git
synced 2026-06-13 04:04:59 +03:00
Add Boosteroid URL processing to scanner
This commit is contained in:
+28
-2
@@ -5991,6 +5991,7 @@ bookmarks_file_path = f"{logged_in_home}/.var/app/com.google.Chrome/config/googl
|
|||||||
geforce_now_urls = []
|
geforce_now_urls = []
|
||||||
xbox_urls = []
|
xbox_urls = []
|
||||||
luna_urls = []
|
luna_urls = []
|
||||||
|
boosteroid_urls = []
|
||||||
seen_urls = set()
|
seen_urls = set()
|
||||||
|
|
||||||
def process_bookmark_item(item):
|
def process_bookmark_item(item):
|
||||||
@@ -6034,6 +6035,29 @@ def process_bookmark_item(item):
|
|||||||
luna_urls.append(("Amazon Luna", game_name, url))
|
luna_urls.append(("Amazon Luna", game_name, url))
|
||||||
seen_urls.add(url)
|
seen_urls.add(url)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# Boosteroid
|
||||||
|
elif "cloud.boosteroid.com/application/" in url:
|
||||||
|
if not name or url in seen_urls:
|
||||||
|
return
|
||||||
|
|
||||||
|
game_name = name.strip()
|
||||||
|
boosteroid_urls.append(("Boosteroid", game_name, url))
|
||||||
|
seen_urls.add(url)
|
||||||
|
|
||||||
|
# Boosteroid (Session format)
|
||||||
|
elif "cloud.boosteroid.com/static/streaming/streaming.html" in url and "sessionId=" in url:
|
||||||
|
if not name or url in seen_urls:
|
||||||
|
return
|
||||||
|
|
||||||
|
game_name = name.strip()
|
||||||
|
boosteroid_urls.append(("Boosteroid", game_name, url))
|
||||||
|
seen_urls.add(url)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def scan_children(children):
|
def scan_children(children):
|
||||||
for item in children:
|
for item in children:
|
||||||
if item['type'] == "folder":
|
if item['type'] == "folder":
|
||||||
@@ -6053,7 +6077,7 @@ else:
|
|||||||
scan_children(data['roots']['synced'].get('children', []))
|
scan_children(data['roots']['synced'].get('children', []))
|
||||||
|
|
||||||
# Merge all platforms' URLs into a single list for processing
|
# Merge all platforms' URLs into a single list for processing
|
||||||
all_urls = geforce_now_urls + xbox_urls + luna_urls
|
all_urls = geforce_now_urls + xbox_urls + luna_urls + boosteroid_urls
|
||||||
|
|
||||||
for platform_name, game_name, url in all_urls:
|
for platform_name, game_name, url in all_urls:
|
||||||
print(f"{platform_name}: {game_name} - {url}")
|
print(f"{platform_name}: {game_name} - {url}")
|
||||||
@@ -6080,7 +6104,9 @@ else:
|
|||||||
)
|
)
|
||||||
track_game(game_name, "Google Chrome")
|
track_game(game_name, "Google Chrome")
|
||||||
|
|
||||||
# end of chrome scanner for xbox, geforce now, and amazon luna bookmarks
|
# end of chrome scanner for xbox, geforce now, and amazon luna, boosteroid bookmarks
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user