ozon metadata parsing error

Bug #1407265 reported by Andrew Malyhin
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
calibre
Fix Released
Undecided
RamZesS

Bug Description

Hello, I am trying to download metadata for books in Russian from Ozon.ru and get parsing errors

I use 'vanilla' Calibre and provide only isbn for search, (my environment is bellow):

calibre, version 2.15.0
ERROR: No matches found: <p>Failed to find any books that match your search. Try making the search <b>less specific</b>. For example, use only the author's last name and a single distinctive word from the title.<p>To see the full log, click Show Details.

Running identify query with parameters:
{u'authors': None, u'identifiers': {u'isbn': u'9785845917928'}, u'title': None, u'timeout': 30}
Using plugins: Google, Amazon.com, Edelweiss, ISBNDB, OZON.ru
The log from individual plugins is below

****************************** OZON.ru ******************************
Request extra headers: [('User-agent', 'Mozilla/5.0 (Windows NT 5.2; rv:2.0.1) Gecko/20100101 Firefox/4.0.1')]
Found 0 results
Downloading from OZON.ru took 1.45519399643
search url: u'http://www.ozon.ru/?context=search&group=div_book&text=978-5-8459-1792-8'
Failed to parse identify results
Traceback (most recent call last):
  File "site-packages/calibre/ebooks/metadata/sources/ozon.py", line 130, in identify
KeyError: u'ozon'

********************************************************************************

Environment:
calibre Debug log
calibre 2.15 isfrozen: True is64bit: True
Darwin-14.0.0-x86_64-i386-64bit Darwin ('64bit', '')
('Darwin', '14.0.0', 'Darwin Kernel Version 14.0.0: Fri Sep 19 00:26:44 PDT 2014; root:xnu-2782.1.97~2/RELEASE_X86_64')
Python 2.7.8
OSX: ('10.10.1', ('', '', ''), 'x86_64')

p.s. Thank you for the awesome product! Btw, Ozon is probably the only metadata source for books in RU so it's very important to me.

Revision history for this message
Kovid Goyal (kovid) wrote : Re: calibre bug 1407265

I dont maintain that plugin (since I dont read russian it is hard for me
to do so). You should contact the author of the plugin, his email
address can be found at the top of the plugin source file:
https://github.com/kovidgoyal/calibre/blob/master/src/calibre/ebooks/metadata/sources/ozon.py

 status wontfix

Changed in calibre:
assignee: nobody → RamZesS (ramses-ru)
status: New → Won't Fix
Revision history for this message
RamZesS (ramses-ru) wrote :

Hello ppl

Ozon chnaged again an location of the ozon-id at the book detail page. So I provided the patch that fix this pronlem.
@Kovid: pls incorporate it to the next release. Thx.

Revision history for this message
Kovid Goyal (kovid) wrote : Fixed in master

Fixed in branch master. The fix will be in the next release. calibre is usually released every Friday.

 status fixreleased

Changed in calibre:
status: Won't Fix → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.