mirror of
https://github.com/beetbox/beets.git
synced 2025-12-30 20:42:37 +01:00
lyrics: fix encoding for Lyrics.com
This commit is contained in:
parent
c1815a5d72
commit
a5cb34360d
2 changed files with 4 additions and 1 deletions
|
|
@ -153,8 +153,9 @@ LYRICSCOM_NOT_FOUND = (
|
|||
'Submit Lyrics',
|
||||
)
|
||||
def _lc_encode(s):
|
||||
s = re.sub(r'[^\w\s-]', '', s)
|
||||
s = re.sub(r'\s+', '-', s)
|
||||
return _encode(s)
|
||||
return _encode(s).lower()
|
||||
|
||||
def fetch_lyricscom(artist, title):
|
||||
"""Fetch lyrics from Lyrics.com."""
|
||||
|
|
|
|||
|
|
@ -19,6 +19,8 @@ Changelog
|
|||
example. Thanks to Lucas Duailibe.
|
||||
* The importer output now shows the number of audio files in each album.
|
||||
Thanks to jayme on GitHub.
|
||||
* :doc:`/plugins/lyrics`: Lyrics searches should now turn up more results due
|
||||
to some fixes in dealing with special characters.
|
||||
|
||||
1.1.0 (April 29, 203)
|
||||
---------------------
|
||||
|
|
|
|||
Loading…
Reference in a new issue