Русский
main page
plugins for
 mediamonkey
  upnp client
  putumayo script
  request mp3
  ftp download
  open cue
  bulk rename

Changes in upnp client for MediaMonkey
Download
  1. Icons under the names of branches and twigs of classes
  2. Opening branches in single click on the title of a branch
  3. Localization header branches
  4. Album covers (provided that the corresponding albums in the library)

VBS

'**********************************
'Change function 'upnp_FillNode' in version 0.5
'**********************************

'**********************************
'ReDefine BrowseIn(5) FOR Sort
'**********************************
BrowseIn(5) = "+dc:date,+upnp:artist,+upnp:album,+upnp:originalTrackNumber"

'**********************************
'Define AFTER 'Dim NewSong'
'**********************************
Dim NodeAllow	'Node Present (Video, for example, not visible)
Dim NodeIcon	'Icon for Node
Dim NodeClass	'NodeClass for Icon

'**********************************
'Null NodeClass AFTER 'title = ""'
'**********************************
NodeClass = ""

'**********************************
'Define NodeClass AFTER 'title = y.childNodes(0).NodeValue'
'**********************************
case "upnp:class"
	NodeClass = y.childNodes(0).NodeValue

'**********************************
'Define NodeAllow and NodeClass AFTER 'next'
'**********************************
NodeAllow = true		'Default is present
NodeIcon = Node.IconIndex 	'Default icon of parent node
select case title		'Select Icon for title
	case "Browse Folders": NodeAllow = false
	case "Pictures": NodeAllow = false
	case "Video": NodeAllow = false
	case "Music": NodeIcon = 40
	case "Album": NodeIcon = 16
	case "All Music": NodeIcon = 48
	case "Artist": NodeIcon = 0
	case "Folders": NodeIcon = 20
	case "Genre": NodeIcon = 7
	case "Playlists": NodeAllow = false
End select
select case NodeClass	'Select Icon for Class
	case "object.container.person.musicArtist": NodeIcon = 0
	case "object.container.album.musicAlbum": NodeIcon = 16
End select

'**********************************
'Localize HERE
'**********************************
title=SDB.Localize(title)
'Apply NodeAllow HERE
If NodeAllow Then

'Apply NodeIcon AFTER 'NewNode.Caption = title'
NewNode.IconIndex = NodeIcon

'BEFORE 'case "item":'
End If

'**********************************
'Make 'Artist of Album' AFTER 'case "dc:creator"'
'**********************************
if .AlbumArtistName=Empty Then .AlbumArtistName=y.childNodes(0).NodeValue

'**********************************
'Show Art Album if Album is present 
'in library AFTER 'Trcks.AddTrack NewSong'
'**********************************
NewSong.UpdateAlbum

'**********************************
'Show Tree by once press and 
'Show Covers of Albums (if don't work Sorting)
'AFTER 'Trcks.FinishAdding'
'**********************************
Node.Expanded = True
Trcks.ViewMode = 2