From 16b9faca9af88b80386c826d88ab74808b545533 Mon Sep 17 00:00:00 2001 From: John Maguire Date: Wed, 21 Nov 2012 12:10:07 +0100 Subject: [PATCH] Update lyrics parsing for tekstowo.pl. Fixes issue #3303 --- data/lyrics/ultimate_providers.xml | 19 ++++++++----------- tools/ultimate_lyrics_parser/sites.js | 21 ++++++++++----------- 2 files changed, 18 insertions(+), 22 deletions(-) diff --git a/data/lyrics/ultimate_providers.xml b/data/lyrics/ultimate_providers.xml index 33e77f5cf..e88da7efe 100644 --- a/data/lyrics/ultimate_providers.xml +++ b/data/lyrics/ultimate_providers.xml @@ -192,27 +192,24 @@ - + - + - + - + - - - + + + - + - - - diff --git a/tools/ultimate_lyrics_parser/sites.js b/tools/ultimate_lyrics_parser/sites.js index 24b1cd011..a1ec54559 100644 --- a/tools/ultimate_lyrics_parser/sites.js +++ b/tools/ultimate_lyrics_parser/sites.js @@ -328,22 +328,21 @@ const siteDescriptors = { }, "teksty.org": { title: "{artist} - {title} - tekst", - charset: "UTF-8", - extract: "", - exclude: [['
']], + charset: "utf-8", + extract: [['
','
']], - url: "http://www.teksty.org/{Artist},{Title2}", + url: "http://teksty.org/{artist},{title},tekst-piosenki", urlFormat : [ - {rep: "_", punct: " _@,;&\\/\"." }, // removed ' - {rep: "", punct: "'" }, + {rep: "-", punct: " _@,;&\\/\"'" }, + {rep: "", punct: "."}, ] }, "tekstowo.pl (Polish translations)": { - title: " {artist} - {title} - ", - charset: "iso-8859-2", - extract: '