summarylogtreecommitdiffstats
path: root/info.py.patch
diff options
context:
space:
mode:
authorJelle van der Waa2019-12-23 15:01:48 +0100
committerJelle van der Waa2019-12-23 15:01:48 +0100
commit2ffa6aeef5126fab7e1d9a14ef46ec9cac148652 (patch)
tree90c9eff2828ac64c33abd24c847c88e9e62e298f /info.py.patch
downloadaur-2ffa6aeef5126fab7e1d9a14ef46ec9cac148652.tar.gz
move to AUR
Diffstat (limited to 'info.py.patch')
-rw-r--r--info.py.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/info.py.patch b/info.py.patch
new file mode 100644
index 000000000000..e95cc3a081fc
--- /dev/null
+++ b/info.py.patch
@@ -0,0 +1,15 @@
+--- sonata/info.py 2011-07-05 22:32:08.452556016 -0500
++++ sonata/info.py 2011-07-05 22:45:50.849311466 -0500
+@@ -393,9 +393,9 @@
+ if content.startswith("#REDIRECT [["):
+ addr = "http://lyricwiki.org/index.php?title=%s&action=edit" % urllib.quote(content.split("[[")[1].split("]]")[0])
+ content = urllib.urlopen(addr).read()
+- lyrics = content.split("<lyrics>")[1].split("</lyrics>")[0]
+- if lyrics.strip() != "<!-- PUT LYRICS HERE (and delete this entire line) -->":
+- lyrics = misc.unescape_html(lyrics)
++ content = misc.unescape_html(content)
++ lyrics = content.split("<lyrics>")[1].split("</lyrics>")[0].strip()
++ if lyrics.strip() != "<!-- PUT LYRICS HERE (and delete this entire line) -->":
+ lyrics = misc.wiki_to_html(lyrics)
+ lyrics = lyrics.decode("utf-8")
+ # Save lyrics to file: