mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Don't download tags from librarything, as the tagging there is not very good
This commit is contained in:
parent
27f1fc0fa4
commit
23ab5e64be
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user