Changelog for #927

This commit is contained in:
Adrian Sampson 2014-09-02 21:45:35 -07:00
parent 4bb852671f
commit c0ce8c3e54
2 changed files with 3 additions and 1 deletions

View file

@ -122,7 +122,7 @@ def strip_cruft(lyrics, wscollapse=True):
lyrics = unescape(lyrics)
if wscollapse:
lyrics = re.sub(r'\s+', ' ', lyrics) # Whitespace collapse.
lyrics = re.sub(r'<(script).*?</\1>(?s)', '', lyrics) # Strip script tags
lyrics = re.sub(r'<(script).*?</\1>(?s)', '', lyrics) # Strip script tags.
lyrics = BREAK_RE.sub('\n', lyrics) # <BR> newlines.
lyrics = re.sub(r'\n +', '\n', lyrics)
lyrics = re.sub(r' +\n', '\n', lyrics)

View file

@ -37,6 +37,8 @@ Fixes:
data when the two are inconsistent.
* Resuming imports and beginning incremental imports should now be much faster
when there is a lot of previously-imported music to skip.
* :doc:`/plugins/lyrics`: Remove ``<script>`` tags from scraped lyrics. Thanks
to Bombardment.
.. _discogs_client: https://github.com/discogs/discogs_client