*** ./sonata/info.py 2011-08-31 23:53:05.000000000 +0400 --- /usr/share/pyshared/sonata/info.py 2011-09-01 00:15:04.192722000 +0400 *************** *** 393,400 **** 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) lyrics = misc.wiki_to_html(lyrics) lyrics = lyrics.decode("utf-8") --- 393,400 ---- 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) lyrics = misc.wiki_to_html(lyrics) lyrics = lyrics.decode("utf-8")