minidlna.conf 路径到不同的驱动器

minidlna.conf 路径到不同的驱动器

有人能告诉我我在 minidlna.conf 中配置第二块硬盘的路径有什么问题吗?我得到以下信息:

[2020/06/25 17:11:27] minidlna.c:623: fatal: Media directory entry not understood [B,/mnt/sdb1/Media]

配置如下:

media_dir=V,/home/guest/files/MediaSERV/Videos
media_dir=A,/home/guest/files/MediaSERV/Music
media_dir=P,/home/guest/files/MediaSERV/Pictures

#media_dir=V,/mnt/sdb1/Media/Downloads
#media_dir=V,/mnt/sdb1/Media/Series
media_dir=V,/mnt/sdb1/Media

我也尝试过 /dev/sdb1/,但也没用,我找不到其他方法指向有问题的驱动器。谢谢

Ubuntu 20.04

sda      8:0    0 931,5G  0 disk 
├─sda1   8:1    0   512M  0 part /boot/efi
└─sda2   8:2    0   931G  0 part /
sdb      8:16   0 465,8G  0 disk 
└─sdb1   8:17   0 465,8G  0 part /mnt/sdb1
sr0     11:0    1  1024M  0 rom  

我已将完整的 minidlna.conf 文件缩减为:

media_dir=V,/home/MediaSERV/Videos
media_dir=A,/home/MediaSERV/Music
media_dir=P,/home/MediaSERV/Pictures

media_dir=V,/mnt/sdb1/Media/Downloads
media_dir=V,/mnt/sdb1/Media/Series

db_dir=/home/MediaSERV/cache

log_dir=/home/MediaSERV/log

port=8200

friendly_name=MyMedia

inotify=yes

album_art_names=Cover.jpg/cover.jpg/AlbumArtSmall.jpg/albumartsmall.jpg
album_art_names=AlbumArt.jpg/albumart.jpg/Album.jpg/album.jpg
album_art_names=Folder.jpg/folder.jpg/Thumb.jpg/thumb.jpg

答案1

这一行:

media_dir=B,/mnt/sdb1/Media

无法理解,因为B 不是有效类型

检查示例 minidlna.conf了解有关有效类型的更多信息。

# set this to the directory you want scanned.
# * if have multiple directories, you can have multiple media_dir= lines
# * if you want to restrict a media_dir to a specific content type, you
#   can prepend the type, followed by a comma, to the directory:
#   + "A" for audio  (eg. media_dir=A,/home/jmaggard/Music)
#   + "V" for video  (eg. media_dir=V,/home/jmaggard/Videos)
#   + "P" for images (eg. media_dir=P,/home/jmaggard/Pictures)

相关内容