Ensure all builtin metadata source plugins define version and minimum_calibre_version

This commit is contained in:
Kovid Goyal 2017-02-28 13:32:41 +05:30
parent a8e07cd355
commit 82fca6cfae
10 changed files with 19 additions and 1 deletions

View File

@ -779,6 +779,8 @@ class Worker(Thread): # Get details {{{
class Amazon(Source):
name = 'Amazon.com'
version = (1, 0, 0)
minimum_calibre_version = (2, 80, 0)
description = _('Downloads metadata and covers from Amazon')
capabilities = frozenset(['identify', 'cover'])

View File

@ -30,6 +30,8 @@ def get_urls(br, tokens):
class BigBookSearch(Source):
name = 'Big Book Search'
version = (1, 0, 0)
minimum_calibre_version = (2, 80, 0)
description = _('Downloads multiple book covers from Amazon. Useful to find alternate covers.')
capabilities = frozenset(['cover'])
config_help_message = _('Configure the Big Book Search plugin')
@ -58,4 +60,3 @@ def test():
if __name__ == '__main__':
test()

View File

@ -153,6 +153,7 @@ class Douban(Source):
name = 'Douban Books'
author = 'Li Fanxi'
version = (2, 0, 0)
minimum_calibre_version = (2, 80, 0)
description = _('Downloads metadata and covers from Douban.com. '
'Useful only for chinese language books.')

View File

@ -165,6 +165,8 @@ class Worker(Thread): # {{{
class Edelweiss(Source):
name = 'Edelweiss'
version = (1, 0, 0)
minimum_calibre_version = (2, 80, 0)
description = _('Downloads metadata and covers from Edelweiss - A catalog updated by book publishers')
capabilities = frozenset(['identify', 'cover'])

View File

@ -163,6 +163,8 @@ def to_metadata(browser, log, entry_, timeout): # {{{
class GoogleBooks(Source):
name = 'Google'
version = (1, 0, 0)
minimum_calibre_version = (2, 80, 0)
description = _('Downloads metadata and covers from Google Books')
capabilities = frozenset({'identify', 'cover'})

View File

@ -17,6 +17,8 @@ USER_AGENT = 'Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45
class GoogleImages(Source):
name = 'Google Images'
version = (1, 0, 0)
minimum_calibre_version = (2, 80, 0)
description = _('Downloads covers from a Google Image search. Useful to find larger/alternate covers.')
capabilities = frozenset(['cover'])
config_help_message = _('Configure the Google Image Search plugin')

View File

@ -19,6 +19,8 @@ BASE_URL = 'https://isbndb.com/api/books.xml?access_key=%s&page_number=1&results
class ISBNDB(Source):
name = 'ISBNDB'
version = (1, 0, 0)
minimum_calibre_version = (2, 80, 0)
description = _('Downloads metadata from isbndb.com')
capabilities = frozenset(['identify'])

View File

@ -13,6 +13,8 @@ from calibre.ebooks.metadata.sources.base import Source
class OpenLibrary(Source):
name = 'Open Library'
version = (1, 0, 0)
minimum_calibre_version = (2, 80, 0)
description = _('Downloads covers from The Open Library')
capabilities = frozenset(['cover'])

View File

@ -26,6 +26,8 @@ base_url = 'https://search.overdrive.com/'
class OverDrive(Source):
name = 'Overdrive'
version = (1, 0, 0)
minimum_calibre_version = (2, 80, 0)
description = _('Downloads metadata and covers from Overdrive\'s Content Reserve')
capabilities = frozenset(['identify', 'cover'])

View File

@ -22,6 +22,8 @@ from calibre.ebooks.metadata.book.base import Metadata
class Ozon(Source):
name = 'OZON.ru'
minimum_calibre_version = (2, 80, 0)
version = (1, 0, 0)
description = _('Downloads metadata and covers from OZON.ru (updated)')
capabilities = frozenset(['identify', 'cover'])