D-Link Forums

The Graveyard - Products No Longer Supported => D-Link Storage => DNS-320 => Topic started by: r00x on December 30, 2012, 06:44:39 PM

Title: DNS-320 DLNA : duplicate entries for movies?
Post by: r00x on December 30, 2012, 06:44:39 PM
Hi all! So glad to have found this place, this device is a confusing bit of kit.

So I've figured out the setup, security, users, drives, programs, folders and got my data on there. So far so good, but there's one niggling problem with the DLNA/UPnP media server feature: all the videos seem to have duplicate entries (they appear twice on DLNA-browsing devices).

Using my Xbox as an example, if I select one entry, the video will play just fine. The duplicate, however, will not - it says "can't play this content because it may not be supported" leading me to believe it either doesn't exist or is referencing some other file. This happens on all DLNA devices I've tried: shows dupes, one works, one doesn't with some variation of "can't be played" or "not supported".

Things I've tried:


I'm out of ideas. Movies are in just one folder, imaginatively entitled "movies" which contains a mish-mash of movies either in folders or just in the root of that directory. There is a smattering of MKV's, MP4's, and AVI's.

I can't seem to find any info on this on this forum, it's FAQ, posts or elsewhere, though I admit my Google-fu is weak. Any ideas?? Help much appreciated! :D

Title: Re: DNS-320 DLNA : duplicate entries for movies?
Post by: r00x on December 30, 2012, 07:03:17 PM
As an aside - it might help to mention that these files were sourced from a Mac/OS X environment. Have the folders been polluted by the rubbish that OS X leaves behind when browsing folders?

For example, I notice if I browse directory structure of the DLNA share using my Xbox, I can see 'folders' named ".AppleDouble". In here will be another copy of the movie in question.

So, if I have a file: /movies/moviename/moviefile, there is also a /movies/moviename/.AppleDouble/moviefile.

But the only way I can see these is if I browse via DLNA, or via the "Web File Browser" in the DNS-320 web interface (which won't delete them of course). Just browsing the files in Finder doesn't show any .AppleDouble folders, though I can see and delete .Ds_store files.

....What to do??
Title: Re: DNS-320 DLNA : duplicate entries for movies?
Post by: albert on December 30, 2012, 09:37:21 PM
What is your NAS firmware version?

AppleDouble are meta-file used by Mac OS X to store additional file resources info on non-HFS+ filesystem. These files are suppressed when view via Samba (veto parameter) but DLNA may work differently. So it all boil down to how the UPnP AV Media Server handle it, only solution is to report this to D-Link and hope they will eventually fix it. Or simply switch to other Media Server which will required FFP and other packages.
Title: Re: DNS-320 DLNA : duplicate entries for movies?
Post by: r00x on December 31, 2012, 09:50:06 AM
Thanks for the suggestion! Yeah, they're trouble-making files alright. So I set about removing them.

First I tried using some Terminal commands to scrub ._AppleDouble files from the network drive. This worked for ._DS_Store files but not the others. I then tried an app called BlueHarvest, which essentially promises to do the same thing to network drives to remove Apple's mess. But no luck.

It transpires the files causing problems are not ._AppleDouble files, but .AppleDouble files (which are invisible to OS X). This meant I could not see them with Windows or OS X machines, let alone remove them.

The online file browser in the NAS web GUI shows the files but of course doesn't support deleting files.

So the solution was to log in via FTP, where the .AppleDouble files were, luckily, accessible. I then searched the whole drive for all .AppleDouble files (using FileZilla's search feature) and deleted them. Now media streaming works great with no duplicates.
Title: Re: DNS-320 DLNA : duplicate entries for movies?
Post by: priitv8 on January 01, 2013, 01:41:47 AM
The online file browser in the NAS web GUI shows the files but of course doesn't support deleting files.
It does. Just right-click. The Web File Server app, I mean.
Title: Re: DNS-320 DLNA : duplicate entries for movies?
Post by: r00x on January 05, 2013, 07:48:58 AM
In response to albert above: it's the "latest" non-beta firmware, 2.03 or something, as I recall?

Groovy, thanks priitv8. That's still a cumbersome solution though, as I need to manually find and delete every .AppleDouble folder.

FileZilla, irritatingly, allows me to search all folders for the .AppleDouble name but when I try to delete them at once says "Deleting multiple unreleated directories is not yet supported".

So at the moment I have to delete them manually either way. Terminal scripts in OS X to find and delete .AppleDouble folders don't work either. At least, I can't get them to. They seem to sift through the NAS over the network but they don't clean up anything.

I refuse to believe that no-one else has experienced similar issues with their Macs, a NAS like this, an UPnP streaming. Surely a solution exists somewhere? All I can find is inconclusive dribs and drabs in various threads.

I've tried firing up Terminal on my Macs and using a command to prevent the writing of .DS_Store and whatnot:

Code: [Select]
defaults write com.apple.desktopservices DSDontWriteNetworkStores true
But these .AppleDouble folders are still appearing so it doesn't seem to have resolved the problem.

Feel like I'm playing whack-a-mole here. Is there really no out-of-the-box solution? It seems bizarre that a NAS which quotes support for Mac-centric features like Time Machine would not be able to handle Mac activity properly within its own feature-set.  :-\
Title: Re: DNS-320 DLNA : duplicate entries for movies?
Post by: priitv8 on January 06, 2013, 02:55:43 AM
That's still a cumbersome solution though, as I need to manually find and delete every .AppleDouble folder.
That's one of the benefits you gain via FFP and command shell (ie you will be able to run Linux commands, which has the potential of being lethal, of course):
http://forums.contribs.org/index.php/topic,46985.msg231358.html#msg231358 (http://forums.contribs.org/index.php/topic,46985.msg231358.html#msg231358)
BTW the same issue has been also discussed elsewhere:
http://forum.qnap.com/viewtopic.php?t=19777 (http://forum.qnap.com/viewtopic.php?t=19777)
Title: Re: DNS-320 DLNA : duplicate entries for movies?
Post by: kmanpilkers on January 20, 2013, 02:48:03 PM
This is a great NAS but I have a DLNA problem too. Rather than duplicating my videos, it doesn't seem to pick them all up via DLNA - anyone know what I can try to resolve this?
Title: Re: DNS-320 DLNA : duplicate entries for movies?
Post by: gunpet on February 03, 2013, 04:16:13 AM
This is a great NAS but I have a DLNA problem too. Rather than duplicating my videos, it doesn't seem to pick them all up via DLNA - anyone know what I can try to resolve this?

I have the same problem exactly.

It shows the 320 in the menu and when you click it you get empty folders.
(Works fine when the same files are on my computer)
Title: Re: DNS-320 DLNA : duplicate entries for movies?
Post by: kmanpilkers on March 12, 2013, 04:23:01 AM
This isn't a solution to the problem but a workaround.

I find that every time I want to pick up new movies/tv shows I have to rebuild the entire uPnP library on the NAS from the web interface. It's slow and cumbersome.

So I stopped bothering with using the NAS for uPnP.. instead I'm using my XBMC installation to connect to to do the uPnP side of things. It just means I have to make sure I can wake up XBMC remotely and/or leave the PC always on. The XBMC library automatically refreshes periodically so it's always up to date. Plus it seems a lot more reliable and you get neat features like it will pull through the movie posters/artwork from my XBMC library on uPnP devices/apps like on my tablet. Hope this helps someone