mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix downloading metadata from ozon.ru
Merge branch 'ozon_fixes' of https://github.com/madhead/calibre
This commit is contained in:
commit
b6aad54e6a
@ -297,10 +297,10 @@ class Ozon(Source):
|
||||
# }}}
|
||||
|
||||
def to_metadata(self, log, entry): # {{{
|
||||
title = unicode(entry.xpath(u'normalize-space(.//span[@itemprop="name"][1]/text())'))
|
||||
title = unicode(entry.xpath(u'normalize-space(.//div[@itemprop="name"][1]/text())'))
|
||||
# log.debug(u'Title: -----> %s' % title)
|
||||
|
||||
author = unicode(entry.xpath(u'normalize-space(.//a[contains(@href, "person")])'))
|
||||
author = unicode(entry.xpath(u'normalize-space(.//div[contains(@class, "mPerson")])'))
|
||||
# log.debug(u'Author: -----> %s' % author)
|
||||
|
||||
norm_authors = map(_normalizeAuthorNameWithInitials, map(unicode.strip, unicode(author).split(u',')))
|
||||
|
Loading…
x
Reference in New Issue
Block a user