Lyrics fetcher: fix lyricsmania.com and sing365.com fetchers

This commit is contained in:
Andrzej Rybczak
2018-03-18 10:52:14 +01:00
parent 10ac22a70f
commit 1b98dd71e1
2 changed files with 3 additions and 2 deletions

1
NEWS
View File

@@ -1,6 +1,7 @@
ncmpcpp-0.8.2 (????-??-??)
* Help screen: fixed display of EoF keycode
* Fixed possible integer overflow when resizing screen
* Fixed fetching lyrics from lyricsmania.com and sing365.com
ncmpcpp-0.8.1 (2017-10-11)
* Setting 'colors_enabled' to 'no' no longer results in a crash.

View File

@@ -98,7 +98,7 @@ struct LyricsmaniaFetcher : public GoogleLyricsFetcher
virtual const char *name() const override { return "lyricsmania.com"; }
protected:
virtual const char *regex() const override { return "<div class=\"lyrics-body\".*?</strong>(.*?)</div>"; }
virtual const char *regex() const override { return "<div class=\"lyrics-body\".*?</div>(.*?)</div>"; }
};
struct Sing365Fetcher : public GoogleLyricsFetcher
@@ -106,7 +106,7 @@ struct Sing365Fetcher : public GoogleLyricsFetcher
virtual const char *name() const override { return "sing365.com"; }
protected:
virtual const char *regex() const override { return "<div class=\"content\">.*?</script>(.*?)<script>"; }
virtual const char *regex() const override { return "<div class=\"content\">.*?</script></div>(.*?)<script>"; }
};
struct JustSomeLyricsFetcher : public GoogleLyricsFetcher