lyrics: fix encoding for Lyrics.com

This commit is contained in:
Adrian Sampson 2013-05-12 12:38:48 -07:00
parent c1815a5d72
commit a5cb34360d
2 changed files with 4 additions and 1 deletions

View file

@ -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."""

View file

@ -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)
---------------------