Don't download tags from librarything, as the tagging there is not very good

This commit is contained in:
Kovid Goyal 2010-06-27 20:06:42 -06:00
parent 27f1fc0fa4
commit 23ab5e64be

View File

@ -133,10 +133,10 @@ def get_social_metadata(title, authors, publisher, isbn, username=None,
if match is not None:
si = float(match.group())
mi.series_index = si
tags = root.xpath('//div[@class="tags"]/span[@class="tag"]/a')
if tags:
mi.tags = [html.tostring(x, method='text', encoding=unicode) for x
in tags]
#tags = root.xpath('//div[@class="tags"]/span[@class="tag"]/a')
#if tags:
# mi.tags = [html.tostring(x, method='text', encoding=unicode) for x
# in tags]
span = root.xpath(
'//table[@class="wsltable"]/tr[@class="wslcontent"]/td[4]//span')
if span: