lyrics fetcher: update lyricsmania fetcher

This commit is contained in:
Andrzej Rybczak
2014-08-30 12:19:35 +02:00
parent 3bd7571407
commit 10ceacea7c
2 changed files with 1 additions and 13 deletions

View File

@@ -247,16 +247,6 @@ bool MetrolyricsFetcher::isURLOk(const std::string &url)
/**********************************************************************/
void LyricsmaniaFetcher::postProcess(std::string &data)
{
// lyricsmania.com uses iso-8859-1 as the encoding
// so we need to convert obtained lyrics to utf-8
data = Charset::toUtf8From(data, "iso-8859-1");
LyricsFetcher::postProcess(data);
}
/**********************************************************************/
LyricsFetcher::Result InternetLyricsFetcher::fetch(const std::string &artist, const std::string &title)
{
GoogleLyricsFetcher::fetch(artist, title);

View File

@@ -90,9 +90,7 @@ struct LyricsmaniaFetcher : public GoogleLyricsFetcher
virtual const char *name() { return "lyricsmania.com"; }
protected:
virtual const char *regex() { return "<div id='songlyrics_h' class='dn'>(.*?)</div>"; }
virtual void postProcess(std::string &data);
virtual const char *regex() { return "<div class=\"lyrics-body\".*?</strong>(.*?)</div>"; }
};
struct Sing365Fetcher : public GoogleLyricsFetcher