Code

screen: remove redundant #ifndef
[ncmpc.git] / lyrics / 20-lyricwiki.rb
index dbb50a3fb6638ec8c1a2d1a9ff5080a8b28779dd..fde22e44a835144efddc0fd7dfa55fe039a2497c 100755 (executable)
@@ -1,6 +1,6 @@
 #!/usr/bin/env ruby
 #
-#  (c) 2004-2008 The Music Player Daemon Project
+#  (c) 2004-2017 The Music Player Daemon Project
 #  http://www.musicpd.org/
 #
 #  This program is free software; you can redistribute it and/or modify
@@ -44,7 +44,7 @@ url = $1
 exit(69) if url =~ /action=edit$/
 
 response = open(URI.parse(url)).read
-if not response =~ /<div class='lyricbox'>\s*(.*?)\s*<!--/im
+if not response =~ /<div class='lyricbox'>\s*(.*?)\s*<div class='lyricsbreak'>/im
        $stderr.puts "No <div class='lyricbox'> in lyrics page!\n"
        exit(1)
 end