-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Lyrics: Fetch lyrics directly from Tekstowo (#5457)
Fixes #5456. This pull request updates the `tekstowo` backend in the `lyrics` plugin to fetch lyrics directly from the Tekstowo.pl website. Recent updates to their website made the previous search-based approach unworkable. ## Changes 1. **Refactor Backend Classes:** - Introduced a new `DirectBackend` class for backends that fetch lyrics directly. - Updated `MusiXmatch` and `Tekstowo` classes to inherit from `DirectBackend`. 2. **Encoding and URL Building:** - Added `encode` and `build_url` methods to `DirectBackend` for URL encoding and construction. - Replaced our custom encoding functionality with `unidecode`. 3. **Tekstowo Backend:** - Added encoding logic, which converts artist and title to the format used by tekstowo. - Removed the search functionality (`parse_search_results`), its test and related search html files. - Updated `artist` and `title` checks from `extract_lyrics`.
- Loading branch information
Showing
5 changed files
with
49 additions
and
1,291 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.