Upload files to "/"

This commit is contained in:
patrlim 2024-07-08 10:06:35 -07:00
parent e5f1945744
commit d8587bafd7
2 changed files with 1 additions and 7 deletions

View file

@ -1,7 +1,5 @@
import os import os
os.system('git pull')
filelist = os.listdir() filelist = os.listdir()
jsonfile = open("songs.json", "w", encoding="utf-8") jsonfile = open("songs.json", "w", encoding="utf-8")
jsonfile.write('{\n "songs":[\n') jsonfile.write('{\n "songs":[\n')
@ -12,7 +10,7 @@ for file in filelist:
if file[-4:] != ".ogg": if file[-4:] != ".ogg":
continue continue
jsonfile.write(" {\n" + ' "name":' + '"' + file.replace(".ogg","") + '",' + "\n") jsonfile.write(" {\n" + ' "name":' + '"' + file.replace(".ogg","") + '",' + "\n")
jsonfile.write(' "url":' + '"' + 'https://github.com/patrlim/musicshite/raw/main/' + file.replace(" ","%20") + '"' + "\n }") jsonfile.write(' "url":' + '"' + 'https://git.merith.xyz/patrlim/musicshite/raw/main/' + file.replace(" ","%20") + '"' + "\n }")
if i != len(os.listdir()): if i != len(os.listdir()):
jsonfile.write(",") jsonfile.write(",")
jsonfile.write("\n") jsonfile.write("\n")

View file

@ -88,10 +88,6 @@
"name":"James Shimoji - Pepsi Man Theme Song", "name":"James Shimoji - Pepsi Man Theme Song",
"url":"https://git.merith.xyz/patrlim/musicshite/raw/main/James%20Shimoji%20-%20Pepsi%20Man%20Theme%20Song.ogg" "url":"https://git.merith.xyz/patrlim/musicshite/raw/main/James%20Shimoji%20-%20Pepsi%20Man%20Theme%20Song.ogg"
}, },
{
"name":"Jamie Berry ft. Octavia Rose - Lost In The Rhythm",
"url":"https://git.merith.xyz/patrlim/musicshite/raw/main/Jamie%20Berry%20ft.%20Octavia%20Rose%20-%20Lost%20In%20The%20Rhythm.ogg"
},
{ {
"name":"Jamie Berry, Octavia Rose - Light up the Night", "name":"Jamie Berry, Octavia Rose - Light up the Night",
"url":"https://git.merith.xyz/patrlim/musicshite/raw/main/Jamie%20Berry,%20Octavia%20Rose%20-%20Light%20up%20the%20Night.ogg" "url":"https://git.merith.xyz/patrlim/musicshite/raw/main/Jamie%20Berry,%20Octavia%20Rose%20-%20Light%20up%20the%20Night.ogg"