Commit Graph
90 Commits
Author SHA1 Message Date
f1nn 0d65a46bbc lyrics: add lrcmux backend 2026-07-15 16:12:21 +02:00
Šarūnas Nejus d9a1bde1c9 Add --no-keep-synced CLI option to lyrics
- Allow manual lyrics fetches to override keep_synced configuration for a single
  run.
2026-07-13 01:14:41 +01:00
Šarūnas Nejus 8020c07acf Track instrumental lyrics metadata
- Leave lyrics text empty when a backend reports an instrumental track and
  persist that state in lyrics_instrumental.
2026-07-13 01:07:59 +01:00
Blake Hakkila 478ac8cb63 lyrics: add rest_directory configuration option 2026-06-15 22:48:00 -07:00
Šarūnas Nejus 0edda6df26 Fix links 2026-06-13 01:46:44 +01:00
Benjamin Stevenson 1b7b7a2b21 Fix docstrfmt line wrapping in changelog and lyrics docs 2026-04-21 17:42:03 -04:00
Benjamin Stevenson fc769e9a79 lyrics: write synced LRC lyrics to SYLT ID3 frame
When the lyrics plugin writes LRC-formatted (timestamped) lyrics to an
ID3-tagged audio file, store the timing data in the SYLT (synchronized
lyrics) frame and plain text in USLT, rather than writing raw LRC text
verbatim to USLT.

Fixes #6541
2026-04-21 17:22:15 -04:00
Šarūnas Nejus 348eb9555f Update docs 2026-04-17 09:19:15 +01:00
kelamgandŠarūnas Nejus 97a89e919c Update docs/plugins/lyrics.rst
Co-authored-by: Šarūnas Nejus <snejus@protonmail.com>
2026-03-22 01:46:50 +00:00
kelamg b3bcb78349 Fix indentation 2026-03-22 01:46:50 +00:00
jochem 55b6fbe77d copied more generic implementation from snejus, and updated the tests and docs accordingly 2026-03-22 01:46:50 +00:00
kelamg eacaa09a07 Fix docs formatting 2026-03-22 01:46:50 +00:00
jochem 2f9ee89b2a Added feature to exclude albums/songs during importing when auto is enabled, as requested in issue #3523. Also added corresponding tests and documentation. 2026-03-22 01:46:50 +00:00
Šarūnas Nejus ae3a2e5729 Fix redirect URLs 2026-03-06 11:28:29 +00:00
Šarūnas Nejus 441c838387 Fix broken URLs 2026-03-06 11:28:29 +00:00
Šarūnas Nejus 3d0d032987 Replace http URLs with https 2026-03-06 11:28:29 +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 82bfc03494 Preserve synced lyrics when fetched result is plain text
When lyrics.synced is enabled, avoid replacing existing synced lyrics with
newly fetched unsynced lyrics, even with force enabled.

Allow replacement when the new lyrics are also synced, or when synced mode
is disabled.
2026-03-05 15:36:59 +00:00
Meth Munindradasa f41f1839be Format docs to pass lint checker 2026-02-12 07:51:04 +11:00
Meth Munindradasa b3c1da3c4f Clarify Azure Translator resource region requirement
Added note about setting the translator resource region to Global to avoid 401 errors.
2026-02-11 21:43:55 +11:00
Kirill A. Korinsky 1d8c378e9f Disable Tekstowo by default as they block requests with the beets UA 2026-02-03 02:18:59 +01:00
Šarūnas Nejus ab5acaabb3 Reformat all docs using docstrfmt 2025-08-10 16:25:05 +01:00
Šarūnas Nejus 7893766e4c Improve flags structure and add tests 2025-02-20 03:47:04 +00:00
Šarūnas Nejus c95156adcd Refactor writing rest files 2025-02-20 03:47:04 +00:00
Šarūnas Nejus d7201062a8 Resurrect translation functionality 2025-02-20 03:47:04 +00:00
Šarūnas Nejus c40db1034a Make lyrics plugin documentation slightly more clear 2025-01-27 08:50:49 +00:00
Šarūnas Nejus 2ff57505d8 Apply dist_thresh to Genius and Google backends
This commit introduces a distance threshold mechanism for the Genius and
Google backends.

- Create a new `SearchBackend` base class with a method `check_match`
  that performs checking.
- Start using undocumented `dist_thresh` configuration option for good,
  and mention it in the docs. This controls the maximum allowable
  distance for matching artist and title names.

These changes aim to improve the accuracy of lyrics matching, especially
when there are slight variations in artist or title names, see #4791.
2025-01-27 08:50:48 +00:00
Šarūnas Nejus 30379bca38 Update lyrics.sources configuration to prioritize lrclib 2025-01-19 15:19:44 +00:00
Šarūnas Nejus 7bbd215efc Update all docs with Poetry 2024-06-10 13:10:16 +01:00
jeff 7b0f5fb3f3 Add config option to prefer synced lyrics over plain 2023-11-05 11:26:33 -05:00
jeff e14982cad7 Add LRCLIB as a provider for the lyrics plugin 2023-11-05 11:26:33 -05:00
Jack Wilsdon dad9d2393d Remove Musixmatch from default enabled sources
Musixmatch are currently blocking all requests with the beets user
agent. See #4585.
2022-12-31 14:34:07 +00:00
Adrian Sampson f067180c4c Shorten a ReST underline 2021-03-28 14:23:38 -04:00
Xavier Hocquet 6081e6a8df CR comments 2021-03-28 13:08:00 -05:00
Xavier Hocquet 8c6530369d Merge branch 'master' into tekstowo-lyrics 2021-03-28 12:05:42 -06:00
David Dembeck 374707bb7a remove LyricsWiki from default sources in docs
https://github.com/beetbox/beets/pull/3766 missed removing this
2021-03-10 12:59:48 -06:00
Jack Wilsdon d115f3679b Remove LyricWiki source
LyricWiki was shut down on 2020/09/21 and no longer serves lyrics.
2020-10-05 22:15:40 +01:00
jtpavlock c9f59ee38d Add broken link checker to integration test (#3703)
* fix broken links
* add link check command to tox
* add link check to the weekly integration test
2020-09-04 15:42:36 -05:00
Xavier Hocquet 58bfe4567e Code review 2020-03-28 11:34:03 -06:00
Xavier Hocquet 1266a04998 Docs, lint, and cleanup beautifulsoup source check 2020-03-19 21:10:52 -06:00
FichteFoll aa31fea037 Update a lot of URLs to use HTTPS
*All* URLs were checked manually, but only once per domain!

I mostly concerned myself with URLs in documentation rather than source
code because the latter may or may not have impactful changes, while the
former should be straight forward.

Changes in addition to simply adding an s:

- changed pip and pypi references as their location has changed
- MPoD (iOS app) url redirects to Regelian, so I replaced those
- updated homebrew references

Notable observations:

- beets.io does have HTTPS set up properly (via gh-pages)
- beatport.py uses the old HTTP url for beatport
- as does lyrics.py for lyrics.wikia.com
- https://tomahawk-player.org/ expired long ago, but the http page
  redirects to https regardless
- none of the sourceforge subdomains have https (in 2019!)
2019-06-05 03:11:49 +02:00
Carl Suster 2e0230789f docs: fix some markup issues and typos 2019-04-27 12:43:13 +10:00
Adrian Sampson e7417e3683 lyrics: Don't crash when BeautifulSoup isn't found 2018-01-30 22:31:15 -05:00
Adrian Sampson b47e3ec565 Fix lyrics docs: genius backend is default-enabled 2018-01-30 22:25:18 -05:00
Adrian Sampson d44eda56c5 Docs refinements for lyrics ReST output 2017-07-16 10:07:32 -04:00
Adrian Sampson c655a13c41 Use title case in docs 2017-07-16 10:02:14 -04:00
Antoine Beaupré f667428758 write sphinx base files
we write the artists files in a subdirectory, to avoid infinite
recursions or flooding the current directory needlessly.

this way, the user has a good base structure and can just chain the
command into sphinx to continue building the next format, after
possible tweaks.
2017-07-15 15:43:16 -04:00
Antoine Beaupré d330353e1c rename the skip option to local
skip was a misnomer: we actually skip "unfetched" lyrics. this means
it's somewhat of a double-negative and really confusing.

--local is clearer, although less in opposition with --force
2017-07-15 14:19:25 -04:00
Antoine Beaupré 32de4148bc use glob patterns correctly in index 2017-07-15 09:30:14 -04:00
Antoine Beaupré 63aa3b3165 write to separate rst files
this makes the ePUB easier to parse by e-readers, because they do not
need to load one giant HTML file, but one per author. it also makes
sphinx rendering more efficient and interactive
2017-07-15 09:23:58 -04:00