forked from rDrama/rDrama
add tab
parent
e60e61ecf7
commit
38540c9d37
|
@ -883,6 +883,7 @@ def settings_song_change(v):
|
||||||
|
|
||||||
if not yt_id_regex.fullmatch(id):
|
if not yt_id_regex.fullmatch(id):
|
||||||
return redirect("/settings/personal?error=Not a YouTube link!")
|
return redirect("/settings/personal?error=Not a YouTube link!")
|
||||||
|
|
||||||
if path.isfile(f'/songs/{id}.mp3'):
|
if path.isfile(f'/songs/{id}.mp3'):
|
||||||
v.song = id
|
v.song = id
|
||||||
g.db.add(v)
|
g.db.add(v)
|
||||||
|
|
Loading…
Reference in New Issue