MotoWilliams

dot this & dot that

  Home  |   Contact  |   Syndication    |   Login
  7 Posts | 0 Stories | 8 Comments | 4 Trackbacks

News

The views expressed on this weblog are mine and do not necessarily reflect the views of my employer.

All postings are provided "AS IS" with no warranties, and confer no rights.

Archives

Post Categories

A+ Blogs

Biztalk / Windows WF

PodCasts

WebSphere MQ

Windows Media Center has to have the Album Artist tag set in order to show up in the My Music module of Windows Media Center. Since this is driven by the Windows Media Player library those tags need to set there. Unfortunately for me almost none of those tags were set in my library so it was time for some scripting:

Dim Artist
Dim AlbumArtist
Set objPlayer = CreateObject("WMPlayer.OCX" )
Set objMediaCollection = objPlayer.MediaCollection
Set colSongList = objMediaCollection.getByAttribute("MediaType", "Audio")
For i = 0 to colSongList.Count - 1
Set objSong = colSongList.Item(i)
Artist = objSong.getItemInfo("Artist")
AlbumArtist = objSong.getItemInfo("WM/AlbumArtist")
if Artist <> AlbumArtist then
wscript.echo objSong.Name
Wscript.Echo Artist & "=" & AlbumArtist
wscript.echo
objSong.setItemInfo "WM/AlbumArtist", Artist
end if
Next
posted on Monday, August 08, 2005 2:21 PM

Feedback

# re: Windows Media Center - My Music Library 12/30/2005 9:35 PM Zack
how do i make a library


# re: Windows Media Center - My Music Library 1/19/2006 5:34 AM Lisa
I wantto set up a music Library.

Post A Comment
Title:
Name:
Email:
Website:
Comment:
Verification: