| Author |
Message |
Gregory Hassett
Guest
|
Posted:
Tue Dec 20, 2005 9:30 pm Post subject:
Walk Artists/Albums trees like Media Player does? |
|
|
Hello,
Can I easily extract a list of all (unique) artists that are present in a
media library using the Media Player SDK?
I can brute-force this by walking all the songs (tracks) in the library and
building a list of unique artists... but I wonder if there's any easier way?
I would like to do the same thing for albums, as well, much as the tree
control in the Windows Media Player does it.
Help is appreciated!
// greg //
|
|
| Back to top |
|
 |
Neil Smith [MVP Digital M
Guest
|
Posted:
Tue Dec 20, 2005 9:30 pm Post subject:
Re: Walk Artists/Albums trees like Media Player does? |
|
|
On Tue, 20 Dec 2005 12:49:41 -0500, "Gregory Hassett"
<ghassett@hotmail.com> wrote:
| Quote: | Hello,
Can I easily extract a list of all (unique) artists that are present in a
media library using the Media Player SDK?
I can brute-force this by walking all the songs (tracks) in the library and
building a list of unique artists... but I wonder if there's any easier way?
I would like to do the same thing for albums, as well, much as the tree
control in the Windows Media Player does it.
|
Not as far as I'm aware. Until the WMP team sees fit to provide an XML
interface to the library (where you could just have an XSL and use
xsl:key and xsl:generate-id to group the artists), you'll have to
brute force it - and the database is dog slow I'm afraid.
Cheers - Neil |
|
| Back to top |
|
 |
Gregory Hassett
Guest
|
Posted:
Tue Dec 20, 2005 9:30 pm Post subject:
Re: Walk Artists/Albums trees like Media Player does? |
|
|
Thank you for your help, Neil -- I will stop driving myself insane looking
for a "documented" way to do this.
// greg //
"Neil Smith [MVP Digital Media]" <neil@nospam.com> wrote in message
news:s8kgq1pa620ou89gscokf6p4iufuciia9h@4ax.com...
| Quote: | On Tue, 20 Dec 2005 12:49:41 -0500, "Gregory Hassett"
ghassett@hotmail.com> wrote:
Hello,
Can I easily extract a list of all (unique) artists that are present in a
media library using the Media Player SDK?
I can brute-force this by walking all the songs (tracks) in the library
and
building a list of unique artists... but I wonder if there's any easier
way?
I would like to do the same thing for albums, as well, much as the tree
control in the Windows Media Player does it.
Not as far as I'm aware. Until the WMP team sees fit to provide an XML
interface to the library (where you could just have an XSL and use
xsl:key and xsl:generate-id to group the artists), you'll have to
brute force it - and the database is dog slow I'm afraid.
Cheers - Neil |
|
|
| Back to top |
|
 |
JD
Guest
|
Posted:
Tue Dec 20, 2005 9:30 pm Post subject:
Re: Walk Artists/Albums trees like Media Player does? |
|
|
No, don't stop looking!! -- Try asking the media library for a string
collection with either an album or artist attribute.... It does what you
want. I've already done the same head banging---
Mike P
"Gregory Hassett" <ghassett@hotmail.com> wrote in message
news:uAg$UxZBGHA.3396@tk2msftngp13.phx.gbl...
| Quote: | Thank you for your help, Neil -- I will stop driving myself insane looking
for a "documented" way to do this.
// greg //
"Neil Smith [MVP Digital Media]" <neil@nospam.com> wrote in message
news:s8kgq1pa620ou89gscokf6p4iufuciia9h@4ax.com...
On Tue, 20 Dec 2005 12:49:41 -0500, "Gregory Hassett"
ghassett@hotmail.com> wrote:
Hello,
Can I easily extract a list of all (unique) artists that are present in
a
media library using the Media Player SDK?
I can brute-force this by walking all the songs (tracks) in the library
and
building a list of unique artists... but I wonder if there's any easier
way?
I would like to do the same thing for albums, as well, much as the tree
control in the Windows Media Player does it.
Not as far as I'm aware. Until the WMP team sees fit to provide an XML
interface to the library (where you could just have an XSL and use
xsl:key and xsl:generate-id to group the artists), you'll have to
brute force it - and the database is dog slow I'm afraid.
Cheers - Neil
|
|
|
| Back to top |
|
 |
|
|
|
|