diff options
author | Victor Toso <me@victortoso.com> | 2015-08-29 11:38:50 +0200 |
---|---|---|
committer | Victor Toso <me@victortoso.com> | 2015-08-29 17:38:18 +0200 |
commit | 38747256c0d140236a38280ba97415e7400afe6d (patch) | |
tree | 5b847d1618823813a576fdd785020432c2403106 | |
parent | 722e3fd09b2e080bb2c0766caafb4614b2975afd (diff) | |
download | grilo-plugins-38747256c0d140236a38280ba97415e7400afe6d.tar.gz |
metrolyrics: fix source by removing noise
Some changes in the metrolyrics website included more html noise in the
lyrics.
https://bugzilla.gnome.org/show_bug.cgi?id=754275
-rw-r--r-- | src/lua-factory/sources/grl-metrolyrics.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lua-factory/sources/grl-metrolyrics.lua b/src/lua-factory/sources/grl-metrolyrics.lua index 5d5b275..02670d8 100644 --- a/src/lua-factory/sources/grl-metrolyrics.lua +++ b/src/lua-factory/sources/grl-metrolyrics.lua @@ -88,6 +88,7 @@ function metrolyrics_get_lyrics(feed) local media = {} local lyrics_body = '<div id="lyrics%-body%-text">(.-)</div>' local noise_array = { + { noise = "</p>", sub = "\n\n" }, { noise = "<p class='verse'><p class='verse'>", sub = "\n\n" }, { noise = "<p class='verse'>", sub = "" }, { noise = "<br/>", sub = "" }, |