SongSelect: Use seconds for previews

This commit is contained in:
LoveEevee
2019-02-21 01:42:18 +03:00
parent 3a28d967b9
commit 1aecc7d52f
3 changed files with 5 additions and 5 deletions

2
app.py
View File

@@ -160,7 +160,7 @@ def make_preview(song_id, song_type, preview):
prev_path = 'public/songs/%s/preview.mp3' % song_id
if os.path.isfile(song_path) and not os.path.isfile(prev_path):
if not preview or preview <= 0.1:
if not preview or preview <= 0:
print('Skipping #%s due to no preview' % song_id)
return False