Score:0

minidlna and multiple copies of same file

ck flag

If one of the folders that minidlna searches contains a symlink to a file in one of the other folders, e.g. with either of these:

$ ln -s ../../folder1 folder2
$ ln -s ../there.flac here.flac

it works fine, except that the generated indexes offer two copies of each music file.
I would have thought that minidlna would have noticed that it is showing the same entry more than once, but it appears not.

Is there something I can do to prevent this, or is this a bug in the server, or what?


Background:

For faster access on a device with a small screen and slow scrolling, I created two folders: Album-links and Artist-links, with separate folders for each initial letter of the alphabet, like:

$ ls -l /data/Music/Alpha-Album/Y
... Year of the Farce [Royal Canadian Air Farce] -> ../../CD/+ Comedy/Royal Canadian Air Farce/Year of the Farce
... Yellow Album, The [The Simpsons] -> ../../CD/The Simpsons/The Yellow Album
... Yellow Submarine [The Beatles] -> ../../CD/The Beatles/Yellow Submarine
... Y Not [Ringo Starr] -> ../../CD/Ringo Starr/Y Not
...
... You Want It Darker [Leonard Cohen] -> ../../CD/Leonard Cohen/You Want It Darker

and:

$ ls -l /data/Music/Alpha-Artist/M
... 'Mamas & The Papas, The' -> '../../CD/The Mamas & The Papas'
... 'Mannheim Steamroller' -> '../../CD/Mannheim Steamroller'
... 'Mark Knopfler' -> '../../CD/Mark Knopfler'
... 'Marvin Gaye' -> '../../CD/Marvin Gaye'
...  Mashmakhan -> ../../CD/Mashmakhan
... 'Mason Williams' -> '../../CD/Mason Williams'
...

where entries are grouped into folders by their first letter. That allows much faster scrolling and selection, compared with the several hundred entries that are listed the normal way.

It worked great for a few days until I used the normal method and each album I selected contained three copies of each song.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.