页次: 1
按wiki设置了
music_directory "~/music"
playlist_directory “/var/lib/mpd/playlists”
db_file “/var/lib/mpd/mpd.db”
log_file “/var/log/mpd/mpd.log”
error_file “/var/log/mpd/mpd.error”
pid_file “/var/run/mpd/mpd.pid”
state_file “/var/lib/mpd/mpdstate”
user “mpd”
按wiki说法,做了
# mkdir /var/lib/mpd/music
# ln -s ~/music /var/lib/mpd/music/
# sudo systemctl start mpd
#systemctl status mpd
mpd.service - Music Player Daemon
Loaded: loaded (/usr/lib/systemd/system/mpd.service; disabled)
Active: active (running) since Thu, 2012-11-08 15:23:09 CST; 6s ago
Main PID: 2803 (mpd)
CGroup: name=systemd:/system/mpd.service
└ 2803 /usr/bin/mpd --no-daemon
看起来启动正常。
#mpc update
Updating DB (#1) ...
volume:100% repeat: off random: off single: off consume: off
数据库更新应该也正常
#mpc ls
或者
#mpc ls |mpc add
都是空列表
检查了/var/lib/mpd/mpd.db,是个344kb的文件,只有
info_begin
format: 1
mpd_version: 0.17.2
fs_charset: UTF-8
tag: Artist
tag: ArtistSort
tag: Album
tag: AlbumArtist
tag: AlbumArtistSort
tag: Title
tag: Track
tag: Name
tag: Genre
tag: Date
tag: Composer
tag: Performer
tag: Disc
tag: MUSICBRAINZ_ARTISTID
tag: MUSICBRAINZ_ALBUMID
tag: MUSICBRAINZ_ALBUMARTISTID
tag: MUSICBRAINZ_TRACKID
info_end
原来db没有更新,是空的。怎么解决?
离线
/etc/mpd.conf 里的话不能这么写,是这个问题吗?
music_directory "~/music"
离线
页次: 1