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:
parent
c6e56813ef
commit
12ac4ae063
@ -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=" _@;\/"'()[]" with="-"/>
|
||||
<urlFormat replace="?" with=""/>
|
||||
<extract>
|
||||
<item begin="<span id="lyrics-html"" end="</span>"/>
|
||||
</extract>
|
||||
<exclude>
|
||||
<item begin=" data-reactid="" end="">"/>
|
||||
</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=" _@,;&\/'"" with="-"/>
|
||||
<urlFormat replace="." with=""/>
|
||||
@ -227,7 +238,7 @@
|
||||
<exclude>
|
||||
<item begin=""id-" end="">"/>
|
||||
</exclude>
|
||||
</provider>
|
||||
</provider>
|
||||
<provider name="teksty.org" title="{artist} - {title} - tekst" charset="utf-8" url="http://teksty.org/{artist},{title},tekst-piosenki">
|
||||
<urlFormat replace=" _@,;&\/"'" with="-"/>
|
||||
<urlFormat replace="." with=""/>
|
||||
|
@ -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."
|
||||
}
|
||||
}
|
||||
|
||||
// --------------------------------------------------------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user