Again the plugin stopped working beginning with calibre 6.17:
Code:
****************************** DNB_DE Covers ******************************
Request extra headers: [('User-agent', 'Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko')]
Failed to download valid cover
Took 108.48140907287598 seconds
No cached cover found, running identify
Query String: num=9783641294229 AND num=9783641294229 NOT (mat=film OR mat=music OR mat=microfiches OR cod=tt)
Query URL: https://services.dnb.de/sru/dnb?version=1.1&maximumRecords=100&operation=searchRetrieve&recordSchema=MARC21-xml&query=num%3D9783641294229%20AND%20num%3D9783641294229%20NOT%20%28mat%3Dfilm%20OR%20mat%3Dmusic%20OR%20mat%3Dmicrofiches%20OR%20cod%3Dtt%29
Got records: 1
Parsing records
[776.w] Found other issue with IDN 1272076784
Query String: num=1272076784 NOT (mat=film OR mat=music OR mat=microfiches OR cod=tt)
Query URL: https://services.dnb.de/sru/dnb?version=1.1&maximumRecords=100&operation=searchRetrieve&recordSchema=MARC21-xml&query=num%3D1272076784%20NOT%20%28mat%3Dfilm%20OR%20mat%3Dmusic%20OR%20mat%3Dmicrofiches%20OR%20cod%3Dtt%29
Got records: 1
[264.b] Publisher: Ludwig Buchverlag
[264.c] Publication Year: 2023-01-01 12:30:00
[245] Title: Waldwissen : Vom Wald her die Welt verstehen. Erstaunliche Erkenntnisse über den Wald, den Menschen und unsere Zukunft - Das umfassendste Buch zum Thema Wald – Standardwerk
[245] Title_Sort: Waldwissen : Vom Wald her die Welt verstehen. Erstaunliche Erkenntnisse über den Wald, den Menschen und unsere Zukunft - Das umfassendste Buch zum Thema Wald – Standardwerk
[100.a] Primary Authors: Wohlleben, Peter
[700.a] Secondary Authors: Ibisch, Pierre ˜L.œ
[856.u] Trying to download Comments from: http://deposit.dnb.de/cgi-bin/dokserv?id=19e848cc24f747718c6a2ed32619c956&prov=M&dok_var=1&dok_ext=htm
[856.u] Got Comments: <p><em>Springe direkt zu:</em></p>
<ul>
<li><a href="DE/Benutzung/inhaltstexte.html?nn=56454#content">Inhalt</a></li>
<li><a href="DE/Benutzung/inhaltstexte.html?nn=56454#navPrimary">Hauptmenü</a></li>
<li><a href="DE/Benutzung/inhaltstexte.html?nn=56454#search">Suche</a></li>
<snipped code from website>
No cover found
and
Code:
****************************** DNB_DE (3, 2, 2) ******************************
Found 1 results
Downloading from DNB_DE took 101.36612796783447
---
Title : Jeder liest Drecksack/Everyone's Reading Bastard : zweisprachige Ausgabe
Title sort : Jeder liest Drecksack/Everyone's Reading Bastard : zweisprachige Ausgabe
Author(s) : Nick Hornby [Hornby, Nick]
Publisher : Köln ; eBook by Kiepenheuer&Witsch
Tags : Erzählende Literatur
Languages : de
Published : 2014-01-01T11:30:00+00:00
Identifiers : isbn:9783462307993, urn:nbn:de:101:1-2014092716662, dnb-idn:1058795074, ddc:820|B
Comments : <p><em>Springe direkt zu:</em></p>
<ul>
<li><a href="DE/Benutzung/inhaltstexte.html?nn=56454#content">Inhalt</a></li>
<snipped code from website>
and finally with calibre 6.18:
Quote:
****************************** DNB_DE (3, 2, 2) ******************************
Found 0 results
Downloading from DNB_DE took 30.34705400466919
Query String: num=9783732587971 AND num=9783732587971 NOT (mat=film OR mat=music OR mat=microfiches OR cod=tt)
Query URL: https://services.dnb.de/sru/dnb?vers...%20cod%3Dtt%29
ERROR: Got invalid response:
Plugin DNB_DE failed
Traceback (most recent call last):
File "mechanize/_urllib2_fork.py", line 1238, in do_open
File "http/client.py", line 1374, in getresponse
File "http/client.py", line 318, in begin
File "http/client.py", line 279, in _read_status
File "socket.py", line 705, in readinto
File "ssl.py", line 1273, in recv_into
File "ssl.py", line 1129, in read
TimeoutError: The read operation timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "calibre_plugins.DNB_DE.__init__", line 1093, in execute_query
data = self.browser.open_novisit(queryUrl, timeout=timeout).read()
File "mechanize/_mechanize.py", line 241, in open_novisit
File "mechanize/_mechanize.py", line 287, in _mech_open
File "mechanize/_opener.py", line 193, in open
File "mechanize/_urllib2_fork.py", line 425, in _open
File "mechanize/_urllib2_fork.py", line 414, in _call_chain
File "calibre/utils/browser.py", line 28, in https_open
File "mechanize/_urllib2_fork.py", line 1240, in do_open
urllib.error.URLError: <urlopen error The read operation timed out>
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "calibre_plugins.DNB_DE.__init__", line 1112, in execute_query
xmlData.find('diagnostics/diag:diagnostic/diag:details', namespaces={
AttributeError: 'NoneType' object has no attribute 'find'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "calibre/ebooks/metadata/sources/identify.py", line 47, in run
File "calibre_plugins.DNB_DE.__init__", line 117, in identify
results = self.execute_query(log, query, timeout)
File "calibre_plugins.DNB_DE.__init__", line 1121, in execute_query
log.error(data)
UnboundLocalError: local variable 'data' referenced before assignment
|