Further fixed some website code

~Now websites show full url in the shortcut so they can be renamed manually, allowing for multiple base name shortcuts or shortcuts that aren't "games"
This commit is contained in:
Roy 2023-07-26 18:37:09 -07:00 committed by GitHub
parent fe57fbf2f7
commit 3c4ebaac62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3131,8 +3131,8 @@ for custom_website in custom_websites:
# Capitalize the first letter of each word in the game name # Capitalize the first letter of each word in the game name
game_name = game_name.title() game_name = game_name.title()
else: else:
# If no match was found, set the game name to an empty string # Use the entire URL as the entry name
game_name = '' game_name = clean_website
# Define the launch options for this website # Define the launch options for this website
chromelaunch_options = f'run --branch=stable --arch=x86_64 --command=/app/bin/chrome --file-forwarding com.google.Chrome @@u @@ --window-size=1280,800 --force-device-scale-factor=1.00 --device-scale-factor=1.00 --kiosk https://{clean_website}/ --chrome-kiosk-type=fullscreen --no-first-run --enable-features=OverlayScrollbar' chromelaunch_options = f'run --branch=stable --arch=x86_64 --command=/app/bin/chrome --file-forwarding com.google.Chrome @@u @@ --window-size=1280,800 --force-device-scale-factor=1.00 --device-scale-factor=1.00 --kiosk https://{clean_website}/ --chrome-kiosk-type=fullscreen --no-first-run --enable-features=OverlayScrollbar'
@ -3142,7 +3142,6 @@ for custom_website in custom_websites:
print(f'app_ids: {app_ids}') print(f'app_ids: {app_ids}')
# Save the updated shortcuts dictionary to the shortcuts.vdf file # Save the updated shortcuts dictionary to the shortcuts.vdf file