summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 84fb647)
raw | patch | inline | side by side (parent: 84fb647)
author | Lazaros Koromilas <lostd@2f30.org> | |
Sun, 12 Jun 2016 18:55:46 +0000 (20:55 +0200) | ||
committer | Max Kellermann <max@duempel.org> | |
Mon, 13 Jun 2016 14:15:04 +0000 (16:15 +0200) |
NEWS | patch | blob | history | |
lyrics/20-lyricwiki.rb | patch | blob | history |
index 2fb18600b4bb876a2e5ea6bb56615293ec447dd7..70cf71b704bcf5521a4d02297ee7421758db000d 100644 (file)
--- a/NEWS
+++ b/NEWS
ncmpc 0.25 - not yet released
* lyricswiki: handle redirects
+* lyricswiki: update XML format
ncmpc 0.24 - (2014-07-14)
diff --git a/lyrics/20-lyricwiki.rb b/lyrics/20-lyricwiki.rb
index 3e284ff9e532e48552f306e3e0bfdfcc036f9cb1..dbb50a3fb6638ec8c1a2d1a9ff5080a8b28779dd 100755 (executable)
--- a/lyrics/20-lyricwiki.rb
+++ b/lyrics/20-lyricwiki.rb
exit(1)
end
-if not $1 =~ /^.*<\/script>(.*?)$/im
- $stderr.puts "Couldn't remove leading XML tags in lyricbox!\n"
- exit(1)
-end
-
lyrics = $1.gsub(/<br \/>/, "\n")
if lyrics.respond_to?(:force_encoding)