Code

lyrics: fixed XML tag removal on wikia.com
authorGuilherme Costa <guilhermevictal@gmail.com>
Tue, 19 May 2015 17:33:53 +0000 (19:33 +0200)
committerMax Kellermann <max@duempel.org>
Mon, 10 Aug 2015 11:59:56 +0000 (13:59 +0200)
lyrics/20-lyricwiki.rb

index 56f61aa7943cd4487f9d996090ec6a222747f20f..9ab72b826722fe74d023ef361ffc11a580ae43ee 100755 (executable)
@@ -49,7 +49,7 @@ if not response =~ /<div class='lyricbox'>\s*(.*?)\s*<!--/im
        exit(1)
 end
 
-if not $1 =~ /^.*<\/div>(.*?)$/im
+if not $1 =~ /^.*<\/script>(.*?)$/im
        $stderr.puts "Couldn't remove leading XML tags in lyricbox!\n"
        exit(1)
 end