lyrics fetcher: update lyricsmania fetcher

master
Andrzej Rybczak 12 years ago
parent 3bd7571407
commit 10ceacea7c
  1. 10
      src/lyrics_fetcher.cpp
  2. 4
      src/lyrics_fetcher.h

@ -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);

@ -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

Loading…
Cancel
Save