file sort
This commit is contained in:
parent
21d80172ca
commit
1e7414907f
@ -90,11 +90,12 @@
|
||||
<div class="option">
|
||||
<label for="st-sortby">Sort tracks by</label>
|
||||
<select id="st-sortby" name="sortby">
|
||||
<option value="id">Track ID / Number</option>
|
||||
<option value="id">Track ID</option>
|
||||
<option value="title">Title</option>
|
||||
<option value="artist">Artist</option>
|
||||
<option value="album">Album</option>
|
||||
<option value="year">Year</option>
|
||||
<option value="file">File name</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="option">
|
||||
|
@ -17,7 +17,7 @@ const port = process.env.PORT || 3000
|
||||
|
||||
const router = express.Router()
|
||||
|
||||
const sortfields = ['id', 'track', 'artist', 'title', 'album', 'year']
|
||||
const sortfields = ['id', 'track', 'artist', 'title', 'album', 'year', 'file']
|
||||
const srchcategories = ['title', 'artist', 'album']
|
||||
|
||||
router.get('/tracks', async (req, res) => {
|
||||
|
Loading…
Reference in New Issue
Block a user