mirror of
https://github.com/beetbox/beets.git
synced 2026-02-12 02:12:10 +01:00
Changelog for #927
This commit is contained in:
parent
4bb852671f
commit
c0ce8c3e54
2 changed files with 3 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue