Skip to content

Commit

Permalink
Better Song Selection
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnGrubba committed Oct 28, 2022
1 parent 105549d commit e64fc1c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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!")

0 comments on commit e64fc1c

Please sign in to comment.