Commit Graph
17 Commits
Author SHA1 Message Date
Šarūnas Nejus 467cf7a8b7 Fix lyrics integration tests 2026-08-21 20:56:39 +01:00
f1nn 0d65a46bbc lyrics: add lrcmux backend 2026-07-15 16:12:21 +02:00
Šarūnas Nejus fb9de7a619 lyrics: fix musica parsing 2026-06-03 15:42:19 +01:00
kelamg 2e70472748 Remove + chars 2026-03-22 01:46:50 +00:00
kelamg 2f83c0869e Fix integration test 2026-03-22 01:46:50 +00:00
Šarūnas Nejus 38708ae592 Refactor lyrics handling to use structured Lyrics object
* Introduce a `Lyrics` dataclass to carry text, source URL, and language
  metadata through fetch, translation, and storage paths.
* Return `Lyrics` from backends and plugin lookup methods instead of raw
  tuples/strings.
* Store backend name in `lyrics_source` derived from fetched URL root
  domain.
* Simplify translator flow to operate on `Lyrics`, reuse line splitting,
  append translations in-place, and record translation language
  metadata.
2026-03-06 10:57:08 +00:00
Šarūnas Nejus 835115a6f7 Fix genius end to end lyrics test 2026-03-06 10:57:08 +00:00
Šarūnas Nejus 1c20e4bd4e Address RUF012 2026-01-13 20:55:40 +00:00
Šarūnas Nejus 3bc653b989 lyrics: xfail sweetslyrics end-to-end test 2025-08-30 23:10:22 +01:00
Šarūnas Nejus 44fda7ca0a lyrics: use another beatles song for Lyricsmode
Lady Madonna apparently is gone from this website. ¯\_(ツ)_/¯
2025-08-30 23:10:22 +01:00
Šarūnas Nejus cb246c28bc Remove dead chartlyrics
This integration test failed because `chartlyrics.com` website is no
longer available, so I'm removing it.
2025-05-31 19:17:43 +01:00
Šarūnas Nejus a735e747f8 Skip tekstowo lyrics test 2025-05-07 20:39:33 +01:00
Šarūnas Nejus 5685cf43cf Align musica lyrics source expected lyrics with whats returned 2025-02-08 09:09:24 +00:00
Šarūnas Nejus 39c479fcab Google: add support for dainuzodziai.lt 2025-01-27 10:56:53 +00:00
Šarūnas Nejus 858c13558c Xfail Songlyrics source 2025-01-27 10:56:53 +00:00
Šarūnas Nejus 70554640e5 Create Html class for cleaning up the html text
Additionally, improve HTML pre-processing:

* Ensure a new line between blocks of lyrics text from letras.mus.br.
* Parse a missing last block of lyrics text from lacocinelle.net.
* Parse a missing last block of lyrics text from paroles.net.
* Fix encoding issues with AZLyrics by setting response encoding to
  None, allowing `requests` to handle it.
2025-01-27 10:56:52 +00:00
Šarūnas Nejus e5c006d99d Test lyrics texts explicitly
Add explicit checks for lyrics texts fetched from the tested sources.

- Introduced `LyricsPage` class to represent lyrics pages for integrated
  tests.
- Configured expected lyrics for each of the URLs that are being
  fetched.
- Consolidated integrated tests in a new `TestLyricsSources` class.
- Mocked Google Search API to return the lyrics page under test.
2025-01-19 01:54:53 +00:00