diff --git a/src/lyrics_fetcher.cpp b/src/lyrics_fetcher.cpp index 1c438f15..2239edce 100644 --- a/src/lyrics_fetcher.cpp +++ b/src/lyrics_fetcher.cpp @@ -78,7 +78,7 @@ LyricsFetcher::Result LyricsFetcher::fetch(const std::string &artist, boost::replace_all(url, "%title%", Curl::escape(title)); std::string data; - CURLcode code = Curl::perform(data, url); + CURLcode code = Curl::perform(data, url, "", true); if (code != CURLE_OK) { @@ -87,7 +87,7 @@ LyricsFetcher::Result LyricsFetcher::fetch(const std::string &artist, } auto lyrics = getContent(regex(), data); - + if (lyrics.empty() || notLyrics(data)) { result.second = msgNotFound; diff --git a/src/lyrics_fetcher.h b/src/lyrics_fetcher.h index 695e50f3..15079f5c 100644 --- a/src/lyrics_fetcher.h +++ b/src/lyrics_fetcher.h @@ -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 "(.*?)"; } + virtual const char *regex() const override { return "