lyrics fetcher: update regexes for a few sites
This commit is contained in:
1
NEWS
1
NEWS
@@ -8,6 +8,7 @@ ncmpcpp-0.6.5 (????-??-??)
|
|||||||
* Possible access of already freed memory when downloading artist info is fixed.
|
* Possible access of already freed memory when downloading artist info is fixed.
|
||||||
* Name of an item is now displayed correctly if present.
|
* Name of an item is now displayed correctly if present.
|
||||||
* Assertion failure when resizing terminal window with no active MPD connection is fixed.
|
* Assertion failure when resizing terminal window with no active MPD connection is fixed.
|
||||||
|
* Lyrics fetchers were updated to work with sites that changed their HTML structure.
|
||||||
|
|
||||||
ncmpcpp-0.6.4 (2015-05-02)
|
ncmpcpp-0.6.4 (2015-05-02)
|
||||||
|
|
||||||
|
|||||||
@@ -98,7 +98,7 @@ struct Sing365Fetcher : public GoogleLyricsFetcher
|
|||||||
virtual const char *name() { return "sing365.com"; }
|
virtual const char *name() { return "sing365.com"; }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual const char *regex() { return "<script src=\"//srv.tonefuse.com/showads/showad.js\"></script>(.*?)<script>\n/\\* Sing365 - Below Lyrics"; }
|
virtual const char *regex() { return "<!-Lyrics Begin->(.*?)<!-Lyrics End->"; }
|
||||||
|
|
||||||
virtual void postProcess(std::string &data);
|
virtual void postProcess(std::string &data);
|
||||||
};
|
};
|
||||||
@@ -108,7 +108,7 @@ struct JustSomeLyricsFetcher : public GoogleLyricsFetcher
|
|||||||
virtual const char *name() { return "justsomelyrics.com"; }
|
virtual const char *name() { return "justsomelyrics.com"; }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual const char *regex() { return "<div class=\"core-left\">(.*?)</div>"; }
|
virtual const char *regex() { return "<div class=\"content.*?</div>(.*?)</div>"; }
|
||||||
};
|
};
|
||||||
|
|
||||||
struct AzLyricsFetcher : public GoogleLyricsFetcher
|
struct AzLyricsFetcher : public GoogleLyricsFetcher
|
||||||
@@ -116,7 +116,7 @@ struct AzLyricsFetcher : public GoogleLyricsFetcher
|
|||||||
virtual const char *name() { return "azlyrics.com"; }
|
virtual const char *name() { return "azlyrics.com"; }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual const char *regex() { return "<!-- start of lyrics -->(.*?)<!-- end of lyrics -->"; }
|
virtual const char *regex() { return "<div class=\"lyricsh\">.*?</h2>.*<div>(.*?)</div>"; }
|
||||||
};
|
};
|
||||||
|
|
||||||
struct InternetLyricsFetcher : public GoogleLyricsFetcher
|
struct InternetLyricsFetcher : public GoogleLyricsFetcher
|
||||||
|
|||||||
Reference in New Issue
Block a user