diff --git a/src/calibre/gui2/store/opensearch_store.py b/src/calibre/gui2/store/opensearch_store.py index e7aa30a85c..54fedbd002 100644 --- a/src/calibre/gui2/store/opensearch_store.py +++ b/src/calibre/gui2/store/opensearch_store.py @@ -19,7 +19,6 @@ from calibre.gui2 import open_url from calibre.gui2.store import StorePlugin from calibre.gui2.store.search_result import SearchResult from calibre.gui2.store.web_store_dialog import WebStoreDialog -#from calibre.utils.opensearch import Client from calibre.utils.opensearch.description import Description from calibre.utils.opensearch.query import Query diff --git a/src/calibre/gui2/store/stores/archive_org_plugin.py b/src/calibre/gui2/store/stores/archive_org_plugin.py index 208b4c1aba..691f819e8c 100644 --- a/src/calibre/gui2/store/stores/archive_org_plugin.py +++ b/src/calibre/gui2/store/stores/archive_org_plugin.py @@ -29,8 +29,11 @@ class ArchiveOrgStore(BasicStoreConfig, OpenSearchStore): s.drm = SearchResult.DRM_UNLOCKED yield s -''' def get_details(self, search_result, timeout): + ''' + The opensearch feed only returns a subset of formats that are available. + We want to get a list of all formats that the user can get. + ''' br = browser() with closing(br.open(search_result.detail_item, timeout=timeout)) as nf: idata = html.fromstring(nf.read()) @@ -38,4 +41,3 @@ class ArchiveOrgStore(BasicStoreConfig, OpenSearchStore): search_result.formats = formats.upper() return True -'''