Thank you for your donation!


Solved: Shared USB HDD with videos
#1
Hi to everyone!

                     This is a simple question (sorry if it's repeated): I have a USB HDD that shares music (mostly flacs), videos and epub files, everything in different subfolders. How can I do to avoid the "unknown" item in the library (that scans the rest of content the hdd). Is there a way to specify where the "music" library is located?

Thanks in advance!


Attached Files Thumbnail(s)
   
Reply
#2
(05-20-2018, 05:13 PM)gabmartini Wrote: Hi to everyone!

                     This is a simple question (sorry if it's repeated): I have a USB HDD that shares music (mostly flacs), videos and epub files, everything in different subfolders. How can I do to avoid the "unknown" item in the library (that scans the rest of content the hdd). Is there a way to specify where the "music" library is located?

Thanks in advance!

simply specify only folder with music content on your NAS and not whole disk

Example 
192.168.x.x/NAS/music
Reply
#3
Hi! Thanks for the reply.

I can't. I haven't specified any NAS source, it's taking the HDD as a USB and scan it completely.
Reply
#4
(05-20-2018, 05:46 PM)gabmartini Wrote: Hi! Thanks for the reply.

I can't. I haven't specified any NAS source, it's taking the HDD as a USB and scan it completely.

Sorry, but I don't understand. Why you can not do it???
You can specify what ever path you like
Reply
#5
(05-20-2018, 05:13 PM)gabmartini Wrote: Hi to everyone!

                     This is a simple question (sorry if it's repeated): I have a USB HDD that shares music (mostly flacs), videos and epub files, everything in different subfolders. How can I do to avoid the "unknown" item in the library (that scans the rest of content the hdd). Is there a way to specify where the "music" library is located?

Thanks in advance!

@gabmartini

From the mpd docs (https://www.musicpd.org/doc/user/music_d...abase.html)

Quote:To exclude a file from the update, create a file called .mpdignore in its parent directory. Each line of that file may contain a list of shell wildcards. Matching files in the current directory and all subdirectories are excluded.

Tedious but doable.

Regards,
Kent
Reply
#6
That did the trick! Thanks @TheOldPresbyope

Just do:

Quote:echo "*" > </path/to/directory/to/be/ignored/>.mpdignore

Source

Thanks to all!
Reply


Forum Jump: