View Single Post
Old 1st March 2006, 04:57   #342
MarquisEXB
Junior Member
 
Join Date: May 2005
Posts: 23
Quote:
Originally posted by billyvnilly
@marquis... hey I've noticed youve been doing some scripts and i wonder if you take requests. Take the ratings from the songs in playlist, and add song x number of times to the playlist. (songs rated 5 will appear a total of 5 times in the playlist) This should help weigh the songs with shuffle on.
PHP Code:
for each track in playlist
    
if track.rating<>255 then
    
for 1 to track.rating-1
        Tracks2Add
=Tracks2Add track.filename &vbcrlf
    next
    end 
if
next

'msgbox tracks2add

for each FileName in split(Tracks2Add,vbcrlf)
    if len(filename) > 0 then
    LoadItem(filename).enqueue
    end if
next 
MarquisEXB is offline   Reply With Quote