From 23ab5e64beec5f6ab3c694842e3c555fc09f6903 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 27 Jun 2010 20:06:42 -0600 Subject: [PATCH] Don't download tags from librarything, as the tagging there is not very good --- src/calibre/ebooks/metadata/library_thing.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/calibre/ebooks/metadata/library_thing.py b/src/calibre/ebooks/metadata/library_thing.py index 36273b27dd..669d9478a3 100644 --- a/src/calibre/ebooks/metadata/library_thing.py +++ b/src/calibre/ebooks/metadata/library_thing.py @@ -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: