mirror of
https://github.com/janishutz/MusicPlayerV2.git
synced 2025-11-25 04:54:23 +00:00
get it running again
This commit is contained in:
@@ -138,8 +138,8 @@ app.get( '/indexDirs', ( req, res ) => {
|
||||
|
||||
app.get( '/getSongCover', ( req, res ) => {
|
||||
if ( req.query.filename ) {
|
||||
if ( coverArtIndex[ req.query.filename ] ) {
|
||||
res.send( coverArtIndex[ req.query.filename ] );
|
||||
if ( indexer.getImages( req.query.filename ) ) {
|
||||
res.send( indexer.getImages( req.query.filename ) );
|
||||
} else {
|
||||
res.status( 404 ).send( 'No cover image for this file' );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user