| Author |
Message |
John Keith
Guest
|
Posted:
Sat Jul 30, 2005 4:30 pm Post subject:
Setting Atrist and Album info |
|
|
I have 3000+ songs ripped from CD's I own. they are stored in
...\Artist\Album\trackno - title.Wav
When scanning my music folders into WMP. They all go into <unknown> How do
I set the Artist and Album from the subfolder names.
What is the script command that will bind my current WMP database. and do I
have to launch WMP ahead of running the script? (im still new to scripting)
I prefer to run this as VBA code from excel (i'm familiar with the debugging
tools that are in the VB editor that comes with excel)... I know how to
access and use the FileSystemObject to scroll through all music files. If
that can be used to set an artist and album so that WMP will then recognize
those properties, that is an option too.
Any Suggestions are welcome.
Regards,
John
--
Regards,
John
|
|
| Back to top |
|
 |
Neil Smith [MVP Digital M
Guest
|
Posted:
Sat Jul 30, 2005 8:30 pm Post subject:
Re: Setting Atrist and Album info |
|
|
On Sat, 30 Jul 2005 09:11:07 -0700, "John Keith"
<JohnKeith@discussions.microsoft.com> wrote:
| Quote: | I have 3000+ songs ripped from CD's I own. they are stored in
..\Artist\Album\trackno - title.Wav
|
I think the problem you'll find is that media player gets this info by
looking at the disk ID stamped onto it by the producer, and then
looking up the disk ID on a database run by AMG and other data
providers.
Once you 'liberate' the data as just .wav files, you've lost that
association with the album, and it has no way to look up the
attributes **
** Well strictly not true, it could be intelligent enough to query a
web service by album and title, but it isn't and they didn't.
| Quote: | When scanning my music folders into WMP. They all go into <unknown
|
So this is when you press F3 to scan the PC for digital media files ?
| Quote: | How do I set the Artist and Album from the subfolder names.
|
Mike Williams has a FAQ about how media player uses those attributes :
http://msmvps.com/thinice/articles/15229.aspx
| Quote: | What is the script command that will bind my current WMP database.
|
First you need to
| Quote: | have to launch WMP ahead of running the script? (im still new to scripting)
|
You'll need to run it as an ActiveX object in VB, for which you need
the ProgID : I think it could be WMPlayer.OCX.7 : It'll be in your
registry, search for a value of 6bf52a52-394a-11d3-b153-00c04f79faa6
and look at the ProgID
| Quote: | I prefer to run this as VBA code from excel (i'm familiar with the debugging
tools that are in the VB editor that comes with excel)... I know how to
access and use the FileSystemObject to scroll through all music files. If
that can be used to set an artist and album so that WMP will then recognize
those properties, that is an option too.
|
This is going to be really hard to explain. Have a look at the
MediaCollection section of the WMP10 SDK and see if you can make sense
of it :
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmplay10/mmp_sdk/mediacollectiongetattributestringcollection.asp
Your basic steps will require requesting "media library access" (full)
so you can write to the media library - in javascript, you'd use
WMP9.settings.requestMediaAccessRights("read");
You'd then need to read each file in the library that has an
AlbumArtist attribute value of "unknown", using
getItemInfo("AlbumArtist");
Then you'd have to look at and regex the file path to give you the
individual Artist and Album strings, and use
setItemInfo("AlbumArtist", Artist) and setItemInfo("Album", Album) to
set the desired attributes of the media library entries.
There is no way you'll be happy to do this without downloading the SDK
documentation from http://go.microsoft.com/fwlink/?LinkId=30588 and
looking at the examples.
I'd also mention that media library access and writing is *extremely*
slow and inefficient, so be prepared for that too. Maybe in the next
version it might be possible to persuade the developers to head for a
standard XML model so it's easy to manuipulate the library, but right
now it's a real mishmash of access methods.
Good luck - Cheers, Neil |
|
| Back to top |
|
 |
John Keith
Guest
|
Posted:
Sun Jul 31, 2005 4:30 pm Post subject:
Re: Setting Atrist and Album info |
|
|
Thanks Neil!
That is exactly the info I was looking for. I would have never thought to
look in the registry (that thing still scares me). But I'm well on my way to
getting my music back to having the structure it needs. I can see why I kept
finding people talking about writing their own music file system, now.
And by the way, it was RP's database that was hopelessly corrupted, which
got me into the trouble in the first place.
--
Regards,
John
"Neil Smith [MVP Digital Media]" wrote:
| Quote: | On Sat, 30 Jul 2005 09:11:07 -0700, "John Keith"
JohnKeith@discussions.microsoft.com> wrote:
I have 3000+ songs ripped from CD's I own. they are stored in
..\Artist\Album\trackno - title.Wav
I think the problem you'll find is that media player gets this info by
looking at the disk ID stamped onto it by the producer, and then
looking up the disk ID on a database run by AMG and other data
providers.
Once you 'liberate' the data as just .wav files, you've lost that
association with the album, and it has no way to look up the
attributes **
** Well strictly not true, it could be intelligent enough to query a
web service by album and title, but it isn't and they didn't.
When scanning my music folders into WMP. They all go into <unknown
So this is when you press F3 to scan the PC for digital media files ?
How do I set the Artist and Album from the subfolder names.
Mike Williams has a FAQ about how media player uses those attributes :
http://msmvps.com/thinice/articles/15229.aspx
What is the script command that will bind my current WMP database.
First you need to
have to launch WMP ahead of running the script? (im still new to scripting)
You'll need to run it as an ActiveX object in VB, for which you need
the ProgID : I think it could be WMPlayer.OCX.7 : It'll be in your
registry, search for a value of 6bf52a52-394a-11d3-b153-00c04f79faa6
and look at the ProgID
I prefer to run this as VBA code from excel (i'm familiar with the debugging
tools that are in the VB editor that comes with excel)... I know how to
access and use the FileSystemObject to scroll through all music files. If
that can be used to set an artist and album so that WMP will then recognize
those properties, that is an option too.
This is going to be really hard to explain. Have a look at the
MediaCollection section of the WMP10 SDK and see if you can make sense
of it :
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmplay10/mmp_sdk/mediacollectiongetattributestringcollection.asp
Your basic steps will require requesting "media library access" (full)
so you can write to the media library - in javascript, you'd use
WMP9.settings.requestMediaAccessRights("read");
You'd then need to read each file in the library that has an
AlbumArtist attribute value of "unknown", using
getItemInfo("AlbumArtist");
Then you'd have to look at and regex the file path to give you the
individual Artist and Album strings, and use
setItemInfo("AlbumArtist", Artist) and setItemInfo("Album", Album) to
set the desired attributes of the media library entries.
There is no way you'll be happy to do this without downloading the SDK
documentation from http://go.microsoft.com/fwlink/?LinkId=30588 and
looking at the examples.
I'd also mention that media library access and writing is *extremely*
slow and inefficient, so be prepared for that too. Maybe in the next
version it might be possible to persuade the developers to head for a
standard XML model so it's easy to manuipulate the library, but right
now it's a real mishmash of access methods.
Good luck - Cheers, Neil
|
|
|
| Back to top |
|
 |
|
|
|
|