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 @@ def parse_language(self, pd):
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 @@ def render_comments(self, desc):
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 get_text(extra, x):
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 @@
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 @@
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 @@
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 @@
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 @@
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'])