Open xathon opened 2 months ago
But it removes the new line for ads
block:
@xathon so maybe instead of decompose
we can use replaceWith('\n')
for ads
?
Ah, good catch. I was using the function to remove the markers, so didn't see that. I'll be back home on Monday, I can put that in then.
Its not perfect either so I ended up using lyrics = re.sub(r"(?<!\n)\n(\[)", r"\n\n\1", lyrics)
to add missing newlines before [blocks] :)
This PR not only contains a fix for the embed string in the end of the lyrics, but also the ticket ads and contributor numbers that have shown up in my scrapes.