Lyrics fetcher: fix lyricsmania.com and sing365.com fetchers
This commit is contained in:
1
NEWS
1
NEWS
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user