Update lyrics fetchers

This commit is contained in:
Andrzej Rybczak
2025-02-24 01:13:48 +01:00
parent 3e6d992b93
commit 2f9a65e177
3 changed files with 6 additions and 3 deletions

View File

@@ -1,3 +1,6 @@
# ncmpcpp-0.10.2 (2025-??-??)
* Update lyrics fetchers.
# ncmpcpp-0.10.1 (2024-10-24) # ncmpcpp-0.10.1 (2024-10-24)
* Fix compilation with `libc++`. * Fix compilation with `libc++`.
* Remove `autogen.sh` in favour of `autoreconf`. * Remove `autogen.sh` in favour of `autoreconf`.

View File

@@ -1,4 +1,4 @@
AC_INIT([ncmpcpp],[0.10.1]) AC_INIT([ncmpcpp],[0.10.2_dev])
AC_CONFIG_SRCDIR([configure.ac]) AC_CONFIG_SRCDIR([configure.ac])
AC_CONFIG_HEADERS(config.h) AC_CONFIG_HEADERS(config.h)
AM_INIT_AUTOMAKE([subdir-objects]) AM_INIT_AUTOMAKE([subdir-objects])

View File

@@ -84,7 +84,7 @@ struct GeniusFetcher : public GoogleLyricsFetcher
virtual const char *name() const override { return "genius.com"; } virtual const char *name() const override { return "genius.com"; }
protected: protected:
virtual const char *regex() const override { return "<div.*?class=\"(?:lyrics|Lyrics__Container).*?>(.*?)</div>"; } virtual const char *regex() const override { return "<div data-lyrics-container.*?>(.*?)</div>"; }
}; };
struct JahLyricsFetcher : public GoogleLyricsFetcher struct JahLyricsFetcher : public GoogleLyricsFetcher
@@ -116,7 +116,7 @@ struct ZeneszovegFetcher : public GoogleLyricsFetcher
virtual const char *name() const override { return "zeneszoveg.hu"; } virtual const char *name() const override { return "zeneszoveg.hu"; }
protected: protected:
virtual const char *regex() const override { return "<div id=\"tartalom_slide_content\"> (.*?)<style>"; } virtual const char *regex() const override { return "<div class=\"lyrics-plain-text trans_original\">(.*?)</div>"; }
}; };
struct InternetLyricsFetcher : public GoogleLyricsFetcher struct InternetLyricsFetcher : public GoogleLyricsFetcher