mirror of
https://github.com/yuukiwww/taiko-web.git
synced 2024-10-22 17:05:49 +02:00
update songs path
This commit is contained in:
parent
58d5e3d748
commit
97eee0e27a
4
app.py
4
app.py
@ -71,9 +71,9 @@ def route_api_songs():
|
|||||||
songs = query_db('select * from songs where enabled = 1')
|
songs = query_db('select * from songs where enabled = 1')
|
||||||
songs_out = []
|
songs_out = []
|
||||||
for song in songs:
|
for song in songs:
|
||||||
osus = [osu for osu in os.listdir('songs/%s' % song[0]) if osu in ['easy.osu', 'normal.osu', 'hard.osu', 'oni.osu']]
|
osus = [osu for osu in os.listdir('public/songs/%s' % song[0]) if osu in ['easy.osu', 'normal.osu', 'hard.osu', 'oni.osu']]
|
||||||
if osus:
|
if osus:
|
||||||
osud = parse_osu('songs/%s/%s' % (song[0], osus[0]))
|
osud = parse_osu('public/songs/%s/%s' % (song[0], osus[0]))
|
||||||
preview = int(get_osu_key(osud, 'General', 'PreviewTime', 0))
|
preview = int(get_osu_key(osud, 'General', 'PreviewTime', 0))
|
||||||
else:
|
else:
|
||||||
preview = 0
|
preview = 0
|
||||||
|
Loading…
Reference in New Issue
Block a user