This script is useful if you have a lot of live albums, compilations, or cover songs. Select the songs in your playlist & run this script. It will delete songs with duplicate song titles (leaving one)

x = playlist.getselection()
 
for each song in x
' For all the songs in the playlist
' remove the above & uncomment the next line
'
' for each song in playlist
'
 
	if instr(AllSongs,ucase(song.title)&vbcrlf)=0 then
		AllSongs=AllSongs & ucase(song.title) & vbcrlf
	else
		Songs2Del = song.position & vbcrlf & songs2Del
 
	end if
next
 
for each pos in split(Songs2Del,vbcrlf)
	if len(pos) > 0 then 
	playlist.deleteindex(pos)
	end if
next
 
quit
 
examples/playlist/remove_duplicately_titled_songs.txt · Last modified: 2006/11/06 15:44
 
Recent changes RSS feed Creative Commons License Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki
Music Plugins