Restore Open Library as the server seems to be functional again

This commit is contained in:
Kovid Goyal 2024-11-07 19:26:42 +05:30
parent b80bf35b0e
commit 7c1b4e9c0b
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -12,7 +12,7 @@ from calibre.ebooks.metadata.sources.base import Source
class OpenLibrary(Source): class OpenLibrary(Source):
name = 'Open Library' name = 'Open Library'
version = (1, 0, 1) version = (1, 0, 2)
minimum_calibre_version = (2, 80, 0) minimum_calibre_version = (2, 80, 0)
description = _('Downloads covers from The Open Library') description = _('Downloads covers from The Open Library')
@ -22,7 +22,6 @@ class OpenLibrary(Source):
def download_cover(self, log, result_queue, abort, def download_cover(self, log, result_queue, abort,
title=None, authors=None, identifiers={}, timeout=30, get_best_cover=False): title=None, authors=None, identifiers={}, timeout=30, get_best_cover=False):
return # site is currently down and timing out leading to slow metadata retrieval
if 'isbn' not in identifiers: if 'isbn' not in identifiers:
return return
isbn = identifiers['isbn'] isbn = identifiers['isbn']