xgate1 / pylast

Automatically exported from code.google.com/p/pylast
Apache License 2.0
0 stars 0 forks source link

getting bio/track summary and content fails #86

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
pylast 0.5
getting the bio/track summary/content returns "\n"
Found out that the firstChild in those cases is a "\n", thus
the line:
[3541] return _unescape_htmlentity(nodes[index].firstChild.data.strip())

should be:
return _unescape_htmlentity(nodes[index].childNodes[1].data.strip())

the same with <content>.

Maybe an issue regarding <!CDATA> and "\n"?

Original issue reported on code.google.com by ralibert...@gmail.com on 7 Nov 2013 at 9:42

GoogleCodeExporter commented 8 years ago
Fixed in my fork: https://github.com/hugovk/pylast/issues/87

Original comment by hugovk@gmail.com on 4 Mar 2014 at 7:40