Merge branch 'douban_large_image' of https://github.com/jnozsc/calibre

This commit is contained in:
Kovid Goyal 2020-03-06 13:27:46 +05:30
commit c2f2eed564
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -48,8 +48,8 @@ def get_details(browser, url, timeout): # {{{
class Douban(Source): class Douban(Source):
name = 'Douban Books' name = 'Douban Books'
author = 'Li Fanxi, xcffl' author = 'Li Fanxi, xcffl, jnozsc'
version = (3, 0, 0) version = (3, 1, 0)
minimum_calibre_version = (2, 80, 0) minimum_calibre_version = (2, 80, 0)
description = _( description = _(
@ -90,7 +90,7 @@ class Douban(Source):
authors = entry_.get('author') authors = entry_.get('author')
book_tags = entry_.get('tags') book_tags = entry_.get('tags')
rating = entry_.get('rating') rating = entry_.get('rating')
cover_url = entry_.get('image') cover_url = entry_.get('images', {}).get('large')
series = entry_.get('series') series = entry_.get('series')
if not authors: if not authors: