hello,
sorry for this later reply. (i renovate my room so my computer is disconnected for couple of days).
anyway i saw someone ask if the sites that lyricator use are maybe the source of the problem, but i checked it and it doesn't even get to the .js file, so it must be before this step.
and something else, if someone want to know how i change the script to work with hebrew:
note: i only use lyrics plugin site so i didn't check this changes for the other sites (because the lyrics plugin site find almost all the lyrics - after i run ip music tagger)
inside the if in line 44 i change the url to this url, (i took it from winamp plugin) with the origin url it doesn't worked.
Code: Select all
rLyricsPlugin = new Request({method:'get',url:'http://www.lyricsplugin.com/winamp03/plugin/',onSuccess:rSuccessLP,onException:rNextLP,onFailure:rNextLP,onCancel:rNextLP});
i create this function to replace the hebrew chars (i know i can do it with regular expression but it was faster for me to do it like this)(if someone want to change it to regular expression i will be happy).
Code: Select all
var replaceHebrewChars = function(s){
s = replaceChars(s,'א',"%D7%90");
s = replaceChars(s,'ב',"%D7%91");
s = replaceChars(s,'ג',"%D7%92");
s = replaceChars(s,'ד',"%D7%93");
s = replaceChars(s,'ה',"%D7%94");
s = replaceChars(s,'ו',"%D7%95");
s = replaceChars(s,'ז',"%D7%96");
s = replaceChars(s,'ח',"%D7%97");
s = replaceChars(s,'ט',"%D7%98");
s = replaceChars(s,'י',"%D7%99");
s = replaceChars(s,'כ',"%D7%9B");
s = replaceChars(s,'ל',"%D7%9C");
s = replaceChars(s,'מ',"%D7%9E");
s = replaceChars(s,'נ',"%D7%A0");
s = replaceChars(s,'ס',"%D7%A1");
s = replaceChars(s,'ע',"%D7%A2");
s = replaceChars(s,'פ',"%D7%A4");
s = replaceChars(s,'צ',"%D7%A6");
s = replaceChars(s,'ק',"%D7%A7");
s = replaceChars(s,'ר',"%D7%A8");
s = replaceChars(s,'ש',"%D7%A9");
s = replaceChars(s,'ת',"%D7%AA");
s = replaceChars(s,'ם',"%D7%9D");
s = replaceChars(s,'ך',"%D7%9A");
s = replaceChars(s,'ף',"%D7%A3");
s = replaceChars(s,'ן',"%D7%9F");
s = replaceChars(s,'ץ',"%D7%A5");
s = replaceChars(s,' ',"%20");
return s;
}
this is the replace char function (i dont remember if it was in the origin script, and because i dont have my computer i can't check it now).
Code: Select all
var replaceChars = function(entry, out, add) {
temp = "" + entry; // temporary holder
while (temp.indexOf(out)>-1) {
pos= temp.indexOf(out);
temp = "" + (temp.substring(0, pos) + add + temp.substring((pos + out.length), temp.length));
}
return temp;
}
i change searchSend function to be like this (of course you can ignore from the comment code).
Code: Select all
var searchSend = function(r, a, t) {
//alert("title ->" + t + " artist ->" + a);
//var s = r.sendString.replace('%artist%', escape(replaceHebrewChars(a))).replace('%title%', escape(replaceHebrewChars(t)));// + '&random=' + $time();
var s = r.sendString.replace('%artist%', a).replace('%title%', t);// + '&random=' + $time();
s = replaceHebrewChars(s);
//alert(s);
r.send(s);
}