From de084e70bf9bdaa72a47275e0fa8320e40908549 Mon Sep 17 00:00:00 2001 From: Andrzej Rybczak Date: Mon, 16 Aug 2010 15:35:34 +0200 Subject: [PATCH] lyrics fetcher: remove lyricsfly.com support I'll take not answering for a week my e-mail with request for permanent userid key as "no". --- src/lyrics_fetcher.cpp | 9 --------- src/lyrics_fetcher.h | 12 ------------ 2 files changed, 21 deletions(-) diff --git a/src/lyrics_fetcher.cpp b/src/lyrics_fetcher.cpp index 2554080..39d43ce 100644 --- a/src/lyrics_fetcher.cpp +++ b/src/lyrics_fetcher.cpp @@ -38,7 +38,6 @@ LyricsFetcher *lyricsPlugins[] = new LyricstimeFetcher(), new MetrolyricsFetcher(), new LyrcComArFetcher(), - new LyricsflyFetcher(), 0 }; @@ -140,14 +139,6 @@ bool LyricwikiFetcher::notLyrics(const std::string &data) return data.find("action=edit") != std::string::npos; } -/***********************************************************************/ - -void LyricsflyFetcher::postProcess(std::string &data) -{ - Replace(data, "[br]", "\n"); - LyricsFetcher::postProcess(data); -} - /**********************************************************************/ LyricsFetcher::Result GoogleLyricsFetcher::fetch(const std::string &artist, const std::string &title) diff --git a/src/lyrics_fetcher.h b/src/lyrics_fetcher.h index c81563e..070ecef 100644 --- a/src/lyrics_fetcher.h +++ b/src/lyrics_fetcher.h @@ -72,18 +72,6 @@ struct LyricwikiFetcher : public LyricsFetcher virtual bool notLyrics(const std::string &data); }; -struct LyricsflyFetcher : public LyricsFetcher -{ - virtual const char *name() { return "lyricsfly.com"; } - - protected: - virtual const char *getURL() { return "http://api.lyricsfly.com/api/api.php?i=1b76e55254f5f22ae-temporary.API.access&a=%artist%&t=%title%"; } - virtual const char *getOpenTag() { return ""; } - virtual const char *getCloseTag() { return ""; } - - virtual void postProcess(std::string &data); -}; - /**********************************************************************/ struct GoogleLyricsFetcher : public LyricsFetcher -- 2.11.4.GIT