From e64fc1cd88f0431c0cde087183adda5042896383 Mon Sep 17 00:00:00 2001 From: JohnGrubba Date: Fri, 28 Oct 2022 12:39:00 +0200 Subject: [PATCH] Better Song Selection --- loader.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/loader.py b/loader.py index 0322a4a..32f2a19 100644 --- a/loader.py +++ b/loader.py @@ -4,7 +4,7 @@ from zipfile import ZipFile import json import os -from webbrowser import open +import webbrowser hdr = { "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.64 Safari/537.11", @@ -77,10 +77,11 @@ def download_and_unzip(url, extract_to): input() os.system("cls" if os.name == "nt" else "clear") print("Select a Song to Download") +webbrowser.open("https://johngrubba.github.io/TromboneChampAutomod/") while True: - open("") indx = int(input("Enter Number of Song: ")) song = songs[indx] + print("Downloading " + song["song_name"]) download_and_unzip(song["dl"], directory + "\BepInEx\CustomSongs") os.system("cls" if os.name == "nt" else "clear") print("Song Downloaded. Select another one or close this Terminal!")