Update plugin.py

This commit is contained in:
Gordon Shumway 2019-11-15 20:22:51 -05:00 committed by GitHub
parent 1abcff3408
commit 997900b85c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -36,8 +36,8 @@ class Lyrics(callbacks.Plugin):
irc.reply("Lyric searches must be formatted as artist, song name")
return
lyrics = pylyrics3.get_song_lyrics(lyric[0].strip(), lyric[1].strip())
lyrics = re.sub('(?<!\.|\!|\?)\s\\n', '.', lyrics).replace(" \n", "")
if lyrics != 'None':
lyrics = re.sub('(?<!\.|\!|\?)\s\\n', '.', lyrics).replace(" \n", "")
irc.reply(lyrics)
else:
irc.reply("No results found")