From 75ac68f7c7665bd43c8dfa6531601b77e8213474 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 14 Mar 2017 11:36:37 +0530 Subject: [PATCH] Get Books: Fix free samples being detected as independent books when searching OPDS based stores such as Feedbooks. Fixes #1672500 [Failed: Downloading](https://bugs.launchpad.net/calibre/+bug/1672500) --- src/calibre/gui2/store/opensearch_store.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/calibre/gui2/store/opensearch_store.py b/src/calibre/gui2/store/opensearch_store.py index 0340c34c01..f677dc0e4e 100644 --- a/src/calibre/gui2/store/opensearch_store.py +++ b/src/calibre/gui2/store/opensearch_store.py @@ -59,6 +59,8 @@ def open_search(url, query, max_results=10, timeout=60): s.cover_url = href elif 'http://opds-spec.org/acquisition/buy' in rel: s.detail_item = href + elif 'http://opds-spec.org/acquisition/sample' in rel: + pass elif 'http://opds-spec.org/acquisition' in rel: if type: ext = guess_extension(type)