Upload files to "/"
This commit is contained in:
parent
e5f1945744
commit
d8587bafd7
2 changed files with 1 additions and 7 deletions
4
main.py
4
main.py
|
@ -1,7 +1,5 @@
|
|||
import os
|
||||
|
||||
os.system('git pull')
|
||||
|
||||
filelist = os.listdir()
|
||||
jsonfile = open("songs.json", "w", encoding="utf-8")
|
||||
jsonfile.write('{\n "songs":[\n')
|
||||
|
@ -12,7 +10,7 @@ for file in filelist:
|
|||
if file[-4:] != ".ogg":
|
||||
continue
|
||||
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()):
|
||||
jsonfile.write(",")
|
||||
jsonfile.write("\n")
|
||||
|
|
|
@ -88,10 +88,6 @@
|
|||
"name":"James Shimoji - Pepsi Man Theme Song",
|
||||
"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",
|
||||
"url":"https://git.merith.xyz/patrlim/musicshite/raw/main/Jamie%20Berry,%20Octavia%20Rose%20-%20Light%20up%20the%20Night.ogg"
|
||||
|
|
Loading…
Reference in a new issue