From 5e773bbd3dc169f09040edde9f5eda9222eddb93 Mon Sep 17 00:00:00 2001 From: jnozsc Date: Thu, 5 Mar 2020 23:29:39 -0800 Subject: [PATCH] douban.py: download hi-res cover --- src/calibre/ebooks/metadata/sources/douban.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/calibre/ebooks/metadata/sources/douban.py b/src/calibre/ebooks/metadata/sources/douban.py index 387f03fabc..c77bdb8dc7 100644 --- a/src/calibre/ebooks/metadata/sources/douban.py +++ b/src/calibre/ebooks/metadata/sources/douban.py @@ -48,8 +48,8 @@ def get_details(browser, url, timeout): # {{{ class Douban(Source): name = 'Douban Books' - author = 'Li Fanxi, xcffl' - version = (3, 0, 0) + author = 'Li Fanxi, xcffl, jnozsc' + version = (3, 1, 0) minimum_calibre_version = (2, 80, 0) description = _( @@ -90,7 +90,7 @@ class Douban(Source): authors = entry_.get('author') book_tags = entry_.get('tags') rating = entry_.get('rating') - cover_url = entry_.get('image') + cover_url = entry_.get('images', {}).get('large') series = entry_.get('series') if not authors: