diff --git a/randomizermodule.py b/randomizermodule.py index b55f066..b7c7581 100644 --- a/randomizermodule.py +++ b/randomizermodule.py @@ -1,14 +1,10 @@ import os import random +import requests -if not os.path.exists("musiclist.txt"): - print("musiclist.txt not found") - exit() - -with open("musiclist.txt", "r") as f: - musiclist = f.readlines() - -def randomize(): +def randomize(listurl): + # Please don't refresh too fast and kill my website and git server... + musiclist = requests.get(listurl).text.split("\n") html = "\n\n\n\n\n\n\n" html += "\n" html += "Halhadus' Music List\n"