I was able to locate the Genius yml scripts from earlier posts and have applied the Naireem fix. Now they are working normally again. The first one ("Genius headers 1") returns the lyrics including any bracketed "section" text that may have been included; the second one ("Genius headers 2") strips any section headers that were included. Both of these are the regular, NOT the "fuzzy" versions.
Paste one or both of these as *.yml files into your "providers" folder. Uncheck the built-in Genius entries from the providers list in Tags(2), check these instead, and you'll be back in business until Mayibongwe can correct the ones in his DLL. Thanks again to Naireem.
name: Genius headers 1
variables:
artist:
type: artist
filters:
- strip_diacritics
- lowercase
- [replace, "!!!", "chk-chik-chick"]
- [regex, '(?<=\W|\s)+(feat.+|ft[\W\s]+|(f\.\s)).+', ""]
- [regex, '\.+|,+|(\W+(?=$))|(^\W+)', ""]
- [regex, "'", ""]
- [regex, '(?<=[a-z0-9%])[^\sa-z0-9%]+(?=[a-z0-9%]+)', "-"]
- [regex, '((?<=\s)([^a-z0-9\s-])+(\s|\W)+)|((?<=\w)([^a-z0-9-])+(\s|\W)+)', " "]
- [strip_nonascii, -]
title:
type: title
filters: artist
config:
url: "https://genius.com/{artist}-{title}-lyrics"
pattern: ['<div data-lyrics-container="true" class="Lyrics-sc-.*?\-\d.*?">(?<lyrics>.*)<div class="LyricsFooter-sc-.*?\-\d.*?">', 's']
post-filters:
- [regex, 'You might also like</div>', "\n"]
- [regex, '<div class="PrimisPlayer.*?>', "\n"]
- [regex, 'Letra de ".*?<br/><br/>', ""]
- [regex, '<inread-ad></inread-ad>', ""]
- [regex, '<div class="StubhubLink.*?</div>', ""]
- br2nl
- strip_html
- utf8_encode
- entity_decode
- clean_spaces
- [regex, '\n{2,}',"\n\n", 's']
- [regex, '\[(\[)',"$1", 's']
- trim
name: Genius headers 2
variables:
artist:
type: artist
filters:
- strip_diacritics
- lowercase
- [replace, "!!!", "chk-chik-chick"]
- [regex, '(?<=\W|\s)+(feat.+|ft[\W\s]+|(f\.\s)).+', ""]
- [regex, '\.+|,+|(\W+(?=$))|(^\W+)', ""]
- [regex, "'", ""]
- [regex, '(?<=[a-z0-9%])[^\sa-z0-9%]+(?=[a-z0-9%]+)', "-"]
- [regex, '((?<=\s)([^a-z0-9\s-])+(\s|\W)+)|((?<=\w)([^a-z0-9-])+(\s|\W)+)', " "]
- [strip_nonascii, -]
title:
type: title
filters: artist
config:
url: "https://genius.com/{artist}-{title}-lyrics"
pattern: ['<div data-lyrics-container="true" class="Lyrics-sc-.*?\-\d.*?">(?<lyrics>.*)<div class="LyricsFooter-sc-.*?\-\d.*?">', 's']
post-filters:
- [regex, 'You might also like</div>', "\n"]
- [regex, '<div class="PrimisPlayer.*?>', "\n"]
- [regex, 'Letra de ".*?<br/><br/>', ""]
- [regex, '<inread-ad></inread-ad>', ""]
- [regex, '<div class="StubhubLink.*?</div>', ""]
- [regex, '\[(\[)',"$1", 's']
- br2nl
- strip_html
- utf8_encode
- entity_decode
- clean_spaces
- [regex, '\[.{1,75}\]', ""]
- [regex, '\n{2,}',"\n\n", 's']
- trim