[grilo-plugins] metrolyrics: fix source by removing noise



commit 38747256c0d140236a38280ba97415e7400afe6d
Author: Victor Toso <me victortoso com>
Date:   Sat Aug 29 11:38:50 2015 +0200

    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

 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 = "" },


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]