1
0
mirror of https://github.com/clementine-player/Clementine synced 2024-12-17 03:45:56 +01:00

Merge pull request #4475 from maximko/master

Fetching lyrics from lololyrics.com
This commit is contained in:
John Maguire 2014-08-11 16:20:27 +02:00
commit 20923c7303
2 changed files with 26 additions and 10 deletions

View File

@ -59,6 +59,13 @@
</extract>
<invalidIndicator value="Verifique se o nome do seu arquivo e sua"/>
</provider>
<provider name="lololyrics.com" title="" charset="utf-8" url="http://api.lololyrics.com/0.5/getLyric?artist={artist}&amp;track={title}">
<urlFormat replace="_@,;&amp;\/&quot;#" with="_"/>
<extract>
<item tag="&lt;response&gt;"/>
</extract>
<invalidIndicator value="ERROR"/>
</provider>
<provider name="loudson.gs" title="" charset="utf-8" url="http://www.loudson.gs/{a}/{artist}/{album}/{title}">
<urlFormat replace=" _@,;&amp;\/&quot;" with="-"/>
<urlFormat replace="." with=""/>

View File

@ -376,16 +376,25 @@ const siteDescriptors = {
charset: "utf-8",
extract: [['</a>?','<div']]
},
"letras.mus.br": {
charset: "iso-8859-1",
url: "http://letras.terra.com.br/winamp.php?musica={title}&artista={artist}",
urlFormat : [
{rep: "_", punct: "_@,;&\\/\"" },
{rep: "+", punct: " " },
],
extract: [["</div>","</div>"]],
invalidIndicator: "Verifique se o nome do seu arquivo e sua",
},
"letras.mus.br": {
charset: "iso-8859-1",
url: "http://letras.terra.com.br/winamp.php?musica={title}&artista={artist}",
urlFormat : [
{rep: "_", punct: "_@,;&\\/\"" },
{rep: "+", punct: " " },
],
extract: [["</div>","</div>"]],
invalidIndicator: "Verifique se o nome do seu arquivo e sua",
},
"lololyrics.com": {
charset: "utf-8",
url: "http://api.lololyrics.com/0.5/getLyric?artist={artist}&track={title}",
urlFormat : [
{rep: "_", punct: "_@,;&\\/\"#" },
],
extract: '<response>',
invalidIndicator: "ERROR",
},
}
// --------------------------------------------------------------------------------------------------------------------------------