INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: TRACKINFO_INSERT_RATING question  (Read 1476 times)

<°)))))><

  • Junior Woodchuck
  • **
  • Posts: 89
  • looking fishy
TRACKINFO_INSERT_RATING question
« 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?
Logged

<°)))))><

  • Junior Woodchuck
  • **
  • Posts: 89
  • looking fishy
Re: TRACKINFO_INSERT_RATING question
« Reply #1 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
Logged
Pages: [1]   Go Up