INTERACT FORUM

Windows => Third Party Plug-ins, Programs, and Skins => Topic started by: <°)))))>< on April 01, 2008, 01:47:08 pm

Title: TRACKINFO_INSERT_RATING question
Post by: <°)))))>< on April 01, 2008, 01:47:08 pm
TRACKINFO_INSERT_RATING returns "? stars" if there's no rating.

As "?" is not allowed in filenames, it's not possible to display images
based on the returned value (unless using filters like "AlphaImageLoader",
which may ignore not allowed values).

Has this changed in current versions of MC?
I can't remember, but didn't it returned "_" or "0" in previous versions?
Any idea for a workaround?
Title: Re: TRACKINFO_INSERT_RATING question
Post by: <°)))))>< on April 02, 2008, 04:20:43 am
OK, after some basic research it looks like the value has changed
several times in MC history...

For handling rating images I made a javascript where

function InsertRating(fishy){
if (fishy=='_' || fishy=='0' || fishy=='?' || fishy=='? stars') { ...

handles different values... now everything works like desired  :P