/* descriptor fields specification: - url - parameters: {artist},{title},{album},{Artist},{Title},{Album},{a} - urlFormat - specify character replacements for url parameters - title - use
',
exclude: [['\n[','] ']],
url: "http://www.songlyrics.com/{artist}/{title}-lyrics/",
urlFormat : [
{rep: "-", punct: " ._@,;&\\/\"" },
{rep: "_", punct: "'" },
]
},
"darklyrics.com": {
title: "{artist} LYRICS - {title}",
charset: "utf-8",
getReply: function(reply, info){
// var start = reply.search(new RegExp(("\d+. " + info.arrange(info.title,this.urlFormat,false) + "").escapeRegExp(),"i"));
var start = reply.search(new RegExp("\\d+. " + info.arrange(info.title,SearchInfo.prototype.defaultReplaces,false) + "[^<]*<\\/b>","i"));
// var start = reply.search(new RegExp("","i"));
if (start<0)
return "";
// Amarok.alert(start);
reply = reply.substring(start);
var end = reply.search(new RegExp("")+4);
reply = reply.replace(/<\/font>/ig,"");
reply = reply.replace(//ig,"");
return reply;
},
/*
matchInfo:function(reply,info,info2){
if (info2){
info.matchedTitle = info2.title;
info.matchedArtist = info2.artist;
// Amarok.alert(info.matchedTitle + " | " + info.matchedArtist);
}else{
LyricsClass.prototype.matchInfo.call(this,reply,info);
if (!info.arrange)
return;
var title = reply.match(new RegExp("\\d+. (" + info.arrange(info.title,SearchInfo.prototype.defaultReplaces,false) + "[^<]*)<\\/b>","i"));
if (title)
info.matchedTitle = title[1];
}
Amarok.alert(info.matchedTitle + " | " + info.matchedArtist);
},
*/
invalidIndicator: "Not Found",
url: "http://www.darklyrics.com/lyrics/{artist}/{album}.html",
urlFormat : [
{rep: "", punct: " _@,;&\\/\"'." },
]
},
"lyricsmode.com": {
title: "{artist} - {title} lyrics",
charset: "iso-8859-1",
invalidIndicator: "Sorry, we have no",
// extract: '