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:
|
if match is not None:
|
||||||
si = float(match.group())
|
si = float(match.group())
|
||||||
mi.series_index = si
|
mi.series_index = si
|
||||||
tags = root.xpath('//div[@class="tags"]/span[@class="tag"]/a')
|
#tags = root.xpath('//div[@class="tags"]/span[@class="tag"]/a')
|
||||||
if tags:
|
#if tags:
|
||||||
mi.tags = [html.tostring(x, method='text', encoding=unicode) for x
|
# mi.tags = [html.tostring(x, method='text', encoding=unicode) for x
|
||||||
in tags]
|
# in tags]
|
||||||
span = root.xpath(
|
span = root.xpath(
|
||||||
'//table[@class="wsltable"]/tr[@class="wslcontent"]/td[4]//span')
|
'//table[@class="wsltable"]/tr[@class="wslcontent"]/td[4]//span')
|
||||||
if span:
|
if span:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user