-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Labels
Description
I confirm that:
- I have searched the existing open AND closed issues to see if an issue already exists for the bug I've encountered
- I'm using the latest version (your issue may have been fixed already)
Version
55.2
Current Behavior
The call to createMPVCommand from NewTrack in track.go does not include the MusicFolder path before the rest of the filepath e.g. it passes something like "Band/Album/TrackName.mp3" instead of "/musicfolder/Band/Album/TrackName.mp3" which causes the mpv command to fail on missing file
Expected Behavior
The call to createMPVCommand should prepend the MusicFolder value before the media file path. Mpv command should succeed
Steps To Reproduce
- With Jukebox mode enabled
- Using the following mpv command template that logs the mpv output
- view the mpv.log file and there will be an error opening file saying it doesn't exist since the path is incorrect
(if you prepend your MusicFolder path before %f in the config, it works)
Environment
- OS:LMDE 6
- Browser: Vivaldi
- Client: DSub
How Navidrome is installed?
Package
Configuration
MusicFolder = "/path/to/music/folder"
Jukebox.Enabled = true
Jukebox.Devices = [
[
"saffire", "pipewire/alsa_output.firewire-0x00130e04014067e0.multichannel-output",
]
]
Jukebox.Default = "saffire"
MPVPath = ""
MPVCmdTemplate='mpv --audio-device=%d --no-audio-display %f --input-ipc-server=%s --log-file=/home/user/Downloads/mpv.log'
LogLevel ='DEBUG'
Relevant log output
NOTE: These are the mpv logs, not navidrome. Included to show mpv command is not including MusicFolder
[ 0.040][v][ifo_dvdnav] Opening Dinosaur Jr/Where You Been/06 Get Me.mp3
[ 0.040][v][bdmv/bluray] Opening Dinosaur Jr/Where You Been/06 Get Me.mp3
[ 0.040][v][file] Opening Dinosaur Jr/Where You Been/06 Get Me.mp3
[ 0.041][e][file] Cannot open file 'Dinosaur Jr/Where You Been/06 Get Me.mp3': No such file or directory
[ 0.041][e][stream] Failed to open Dinosaur Jr/Where You Been/06 Get Me.mp3.
[ 0.041][v][cplayer] Opening failed or was aborted: Dinosaur Jr/Where You Been/06 Get Me.mp3
[ 0.041][v][cplayer] Running hook: ytdl_hook/on_load_fail
[ 0.041][v][ytdl_hook] full hook
[ 0.042][v][cplayer] finished playback, loading failed (reason 4)
[ 0.042][i][cplayer]
[ 0.042][i][cplayer] Exiting... (Errors when loading file)
Anything else?
No response
Code of Conduct
- I agree to follow Navidrome's Code of Conduct