Implement WebRcade URL processing

Added support for WebRcade URLs in the NSLGameScanner.
This commit is contained in:
Roy
2026-07-08 05:58:00 -07:00
committed by GitHub
parent 01a735cb9f
commit 6efc4af79f
+16 -4
View File
@@ -6034,6 +6034,7 @@ geforce_now_urls = []
xbox_urls = []
luna_urls = []
boosteroid_urls = []
webrcade_urls = []
seen_urls = set()
def process_bookmark_item(item):
@@ -6099,6 +6100,17 @@ def process_bookmark_item(item):
seen_urls.add(url)
# WebRcade
elif "play.webrcade.com/app/" in url:
if not name or url in seen_urls:
return
game_name = name.strip()
webrcade_urls.append(("WebRcade", game_name, url))
seen_urls.add(url)
def scan_children(children):
for item in children:
@@ -6119,18 +6131,17 @@ else:
scan_children(data['roots']['synced'].get('children', []))
# Merge all platforms' URLs into a single list for processing
all_urls = geforce_now_urls + xbox_urls + luna_urls + boosteroid_urls
all_urls = geforce_now_urls + xbox_urls + luna_urls + boosteroid_urls + webrcade_urls
for platform_name, game_name, url in all_urls:
print(f"{platform_name}: {game_name} - {url}")
# Encode URL to prevent issues with special characters
encoded_url = quote(url, safe=":/?=&")
encoded_url = url
chromelaunch_options = (
f'run --branch=stable --arch=x86_64 --command=/app/bin/chrome --file-forwarding com.google.Chrome @@u @@ '
f'--window-size=1280,800 --force-device-scale-factor=1.00 --device-scale-factor=1.00 '
f'--start-fullscreen {encoded_url} --no-first-run --enable-features=OverlayScrollbar'
f'--start-fullscreen "{encoded_url}" --no-first-run --enable-features=OverlayScrollbar'
)
chromedirectory = os.environ.get("chromedirectory", "/usr/bin/flatpak")
@@ -6154,6 +6165,7 @@ else:
# Waydroid scanner
# Check for Waydroid
if shutil.which("waydroid") is None: