1
0
mirror of https://github.com/clementine-player/Clementine synced 2024-12-12 09:26:06 +01:00

Add Musixmatch as lyrics provider

This commit is contained in:
Eduard Braun 2015-09-21 22:17:32 +02:00
parent c6e56813ef
commit 12ac4ae063
2 changed files with 24 additions and 1 deletions

View File

@ -188,6 +188,17 @@
</exclude>
<invalidIndicator value="Something went wrong"/>
</provider>
<provider name="musixmatch.com" title="{artist} - {title} lyrics | Musixmatch" charset="utf-8" url="https://www.musixmatch.com/lyrics/{Artist}/{Title}">
<urlFormat replace=" _@;\/&quot;'()[]" with="-"/>
<urlFormat replace="?" with=""/>
<extract>
<item begin="&lt;span id=&quot;lyrics-html&quot;" end="&lt;/span&gt;"/>
</extract>
<exclude>
<item begin=" data-reactid=&quot;" end="&quot;&gt;"/>
</exclude>
<invalidIndicator value="We couldn't find that page."/>
</provider>
<provider name="seeklyrics.com" title="{artist} - {title} Lyrics" charset="iso-8859-1" url="http://www.seeklyrics.com/lyrics/{Artist}/{Title}.html">
<urlFormat replace=" _@,;&amp;\/'&quot;" with="-"/>
<urlFormat replace="." with=""/>
@ -227,7 +238,7 @@
<exclude>
<item begin="&quot;id-" end="&quot;&gt;"/>
</exclude>
</provider>
</provider>
<provider name="teksty.org" title="{artist} - {title} - tekst" charset="utf-8" url="http://teksty.org/{artist},{title},tekst-piosenki">
<urlFormat replace=" _@,;&amp;\/&quot;'" with="-"/>
<urlFormat replace="." with=""/>

View File

@ -395,6 +395,18 @@ const siteDescriptors = {
extract: '<response>',
invalidIndicator: "ERROR",
},
"musixmatch.com": {
url: "https://www.musixmatch.com/lyrics/{Artist}/{Title}",
urlFormat: [
{punct: " _@;\\/\"\'\(\)\[\]", rep: "-" },
{punct: "\?", rep: "" },
],
title: "{artist} - {title} lyrics | Musixmatch",
charset: "utf-8",
extract: [['<span id="lyrics-html"','</span>']],
exclude: [[' data-reactid="','">']],
invalidIndicator: "We couldn't find that page."
}
}
// --------------------------------------------------------------------------------------------------------------------------------