From 12ac4ae063d8c09bbc60a65d509867ec5e041838 Mon Sep 17 00:00:00 2001 From: Eduard Braun Date: Mon, 21 Sep 2015 22:17:32 +0200 Subject: [PATCH] Add Musixmatch as lyrics provider --- data/lyrics/ultimate_providers.xml | 13 ++++++++++++- tools/ultimate_lyrics_parser/sites.js | 12 ++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/data/lyrics/ultimate_providers.xml b/data/lyrics/ultimate_providers.xml index 8f46146d5..306e1373f 100644 --- a/data/lyrics/ultimate_providers.xml +++ b/data/lyrics/ultimate_providers.xml @@ -188,6 +188,17 @@ + + + + + + + + + + + @@ -227,7 +238,7 @@ - + diff --git a/tools/ultimate_lyrics_parser/sites.js b/tools/ultimate_lyrics_parser/sites.js index d27bc0d35..c012f88f0 100644 --- a/tools/ultimate_lyrics_parser/sites.js +++ b/tools/ultimate_lyrics_parser/sites.js @@ -395,6 +395,18 @@ const siteDescriptors = { extract: '', 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: [['']], + exclude: [[' data-reactid="','">']], + invalidIndicator: "We couldn't find that page." + } } // --------------------------------------------------------------------------------------------------------------------------------