From d7ec0292783dc46f31520c4cca1c9e23b52a8c89 Mon Sep 17 00:00:00 2001 From: Alexandr Savca Date: Sat, 11 Mar 2017 09:20:51 +0200 Subject: [PATCH] lyrics plugin: fix lyrics.wikia.com Fix to not display 'HelpOut' page instead of lyrics when song not found. --- plugins/lyrics.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/lyrics.pm b/plugins/lyrics.pm index 32222a9f..c5f7021b 100644 --- a/plugins/lyrics.pm +++ b/plugins/lyrics.pm @@ -73,6 +73,7 @@ my %Sites= # id => [name,url,?post?,function] if the function return 1 => lyrics lyricwiki => [lyricwiki => 'http://lyrics.wikia.com/%a:%t',undef, sub { return 0,'http://lyrics.wikia.com/'.$1 if $_[0]=~m#.*?((?:&\#\d+;|
|){5,}).*!$1!s; #keep only the "lyric box" + return $notfound if $_[0]=~m!This is a list of songs not being assigned to an artist yet!; return 0 if $_[0]=~m![...](?:
)*!; # truncated lyrics : "[...]" followed by italic explanation => not auto-saved return !!$1; }],