Wigster;671605 Wrote: 
> It also takes about an hour to download the full library: is that normal
> behaviour? My library is about 15000 tracks.It takes 25 minutes for just 
> under 10k tracks in my case, so this does
sound a bit on the slow side. Note: The chain is WMP -> Whitebear ->
SBS, where the slowest link is SBS and this itself is limited by your
CPU capacity...

Wigster;671605 Wrote: 
> The question now is why is WMP doing this? I've erased the cache, I've
> refreshed the library, and it's always like that.Well, take a deep breath, 
> the following gets techncial...

The browsing of a Digital Media Server (music library) is handled by a
UPnP Service called ContentDirectory; this Service supports two Actions
called Browse and Search. The Browse Action is a hierarchical tree based
browsing structure having nested branches (like Artists, Genres, Albums)
that finally ends up with leaves (i.e. the tracks). And the Search
Action is a database query ("give me all tracks where the artist name
is Fred").

Some Control Points (such as FooBar) use the Browse Action. This means
that the ContentDirectory browse tree exactly follows the structure
that is hardwired in Whitebear respectively in SBS. Here you would only
get track duplication if the track is really physically duplicated in
the SBS database (but in that case each track would still have a
different Url).

Other Control Points (such as J. River Media Center) use the Search
Action ("give me all items that are music tracks") and the Control
Point builds itself a local database (cache) of the respective tracks.
The Control Point sorts and structures its database locally according
to the meta data tags that Whitebear/SBS provide along with the track
concerned. So it may indeed (if it so wishes) create a duplicate entry
in its local cache for a single downloaded track based on its its own
local rules.

Now Windows Media Player 12 is really a special beast. (Of course...)
It prefers to use the Search Action. So normally it behaves as J. River
Media Center does. But if the Search Action fails it falls back to using
the Browse Action and then uses this Action to actively iterate through
all branches of the Whitebear/SBS browse tree and add the respective
track its local database. Normally WMP12 makes one Search request, and
if that request succeeds it continues to download the whole library
using the Search Action, however if the first Search fails, it then
switches over to using the Browse Action.

Now, my speculation is that in your case, WMP 12 may be starting the
download of your library using the Search Action, and then for some
reason, one of the Search requests may be failing, and it then switches
over to using the Browse Action whereupon it re-does the whole download
again. The 60 minutes for downloading 15k tracks, compared to 25
minutes for downloading my 10k tracks, supports the hypothesis that
half your library is being downloaded using the Search Action, and then
the full library is being downloaded again using the Browse Action. In
other words, it may be that your library is being downloaded
one-and-a-half times; and this might well lead to WMP 12 having
duplicate entries for the half of your library that was downloaded
twice.

How to check this hypothesis? Well I will need a log from Whitebear in
which logging is turned on for both the Http Server, and for the
Squeezebox CLI commands, so that I can identify if 1) there is a Search
Action request that fails, and 2) that it switches over to Browse, and
3) if so, why.

I estimate that a log for a full download of 15k tracks will be around
100 MBytes in size; which is clearly too big to post here or send by
mail. Do you have access to a web server where you can put such a log
file? If so please send me (by PM) a link where I can download it. If
not then you will need to open the log file in Notepad (it may take
Notepad 15 minutes or more to just even open such a file) and then
search for the string #Browse (including the leading hash sign), if you
find a #Browse, search backwards from that #Browse to find the last
instance of #Search before it, and then copy everything between the
last #Search and the first #Browse (plus a page on either side to be on
the safe side).


-- 
AndrewFG

Regards,
AndrewFG

Try out Whitebear. The middleware that joins the two worlds of:
1. UPnP/DLNA media clients and media players, and,
2. Squeezebox Server and Squeeze Players
Download it for free here: http://www.whitebear.ch/mediaserver
------------------------------------------------------------------------
AndrewFG's Profile: http://forums.slimdevices.com/member.php?userid=15838
View this thread: http://forums.slimdevices.com/showthread.php?t=90842

_______________________________________________
discuss mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/discuss

Reply via email to