View Single Post
Old 07-12-2018, 05:02 PM   #1
citronalco
Enthusiast
citronalco began at the beginning.
 
Posts: 32
Karma: 10
Join Date: Jul 2018
Device: PocketBook Touch HD
[Metadata Source Plugin] Deutsche Nationalbibliothek

This plugin uses the catalogue of the Deutsche Nationalbibliothek (DNB) to retrieve metadata.
DNB is the German central archival library. German publishers are required to send them a copy of every book for archival, so it's the largest metadata source for literature published in Germany.

Main Features
This plugin supports retrieval of all relevant metadata (authors, title, cover, ISBN, edition, tags, publication date, languages, publisher, comments, series, series index, URN and DNB-IDN).
For books without series information it can try to extract series and series index from the title. Standardized GND subjects and/or non-GND subjects can be used as tags.
This plugin works with Python 2 and Python 3.

Limitations
The returned publication date contains only the year, not the precise date.

Installation
Download the attached zip file and install the plugin as described in the Introduction to plugins thread.
The plugin is also available in Calibre's Plugin Updater.

How to report Bugs
If you find any issues please report them in this thread or on Github.

Version History
Spoiler:

v2.0.6 - 11 Jul 2018
  • First version posted on this forum

v2.0.7 - 5 Oct 2018
  • Add some error reporting

v2.1.0 - 4 Jan 2019
  • Fix retrieval of publication date and publisher name for new Calibre versions
  • Improve series extraction
  • Code cleanup

v2.1.1 - 5 Jan 2019
  • Further improve series extraction

v2.1.2 - 7 Oct 2019
  • Fix retrieval by command line
  • Tidy up query creation, at least a bit
  • Workaround for SRU issue with ? and + signs
  • Improve retrieval of series info from metadata
  • Improve series guesser

v2.1.3 - 17 May 2020
  • Fix regression when searching without author
  • Improve series detection
  • Preliminary support for Python 3

v3.0.0 - 9 Jul 2020
  • Full support for Python 2 and Python 3

v3.0.1 - 29 March 2021
  • Remove web scraping and SRU token: Beginning of April 1st 2021 DNB's SRU interface is publicly available
  • If ISBN is given only search for the ISBN and ignore title and authors. This is how other plugins handle this, too
  • Improve XPATH code
  • Fix duplicate "urn:urn:" prefix at URN
v3.1.1 - 10 April 2021
  • Improve logging
  • Fix language extraction
  • Reorder queries to improve results quality
  • Fix filtering out audio books
  • Fix multiline publisher location
  • Improve creation of title variants for queries
  • Improve handling of titles with numbers with leading zeros
  • Don't query DNB for more results when good results are already found
  • Update minimum required Calibre version to 0.9.33
v3.1.2 - 10 May 2021
  • Fix regression in series extraction
  • Fix skipping of audio books
  • Minor improvements
v3.1.3 - 30 December 2021
  • Fix cover image download (DNB has changed its URL)
  • Slightly improve search
v3.1.4 - 2 January 2022
  • Fix syntax error in broken v3.1.3
v3.1.5 - 13 January 2022
  • Change author naming scheme from "lastname, firstname" to "firstname lastname", similar to most other plugins
  • Include all author names into "Authors Sort", not only the first one
v3.1.6 - 30 January 2022
  • Output metadata in normalized UTF-8 form (NFC)
v3.1.7 - 31 March 2022
  • Skip TLS cert validation as CA is missing in some Python installations
v3.2.0 - 23 July 2022
  • Support for Calibre 6
  • Increase minimum required Calibre version to 3.48.0. Older versions have issues with TLS and can't download any data from DNB.
v3.2.1 - 22 August 2022
  • Fix retrieval of non-GND subjects
v3.2.2 - 12 February 2023
  • Fix bug preventing cover downloads
  • Rework query creation for better results
  • Get comments and cover also from other physical editions
v3.2.3 - 19 June 2023
Workaround DNB's issues
  • DNB takes up to several seconds to respond, so only query max. 10 results (prev: 100)
  • Instead of a book's content, DNB returns an error page. Ignore this page.
v3.2.4 - 01 February 2024
  • Fix downloading covers for books having no dnb-idn saved
Attached Files
File Type: zip dnb-metadata-plugin-3.2.4.zip (26.7 KB, 4004 views)

Last edited by citronalco; 02-01-2024 at 02:52 AM. Reason: New plugin version released
citronalco is offline   Reply With Quote