mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
...
This commit is contained in:
parent
e4adfb0440
commit
075468484d
@ -19,7 +19,6 @@ from calibre.gui2 import open_url
|
|||||||
from calibre.gui2.store import StorePlugin
|
from calibre.gui2.store import StorePlugin
|
||||||
from calibre.gui2.store.search_result import SearchResult
|
from calibre.gui2.store.search_result import SearchResult
|
||||||
from calibre.gui2.store.web_store_dialog import WebStoreDialog
|
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.description import Description
|
||||||
from calibre.utils.opensearch.query import Query
|
from calibre.utils.opensearch.query import Query
|
||||||
|
|
||||||
|
@ -29,8 +29,11 @@ class ArchiveOrgStore(BasicStoreConfig, OpenSearchStore):
|
|||||||
s.drm = SearchResult.DRM_UNLOCKED
|
s.drm = SearchResult.DRM_UNLOCKED
|
||||||
yield s
|
yield s
|
||||||
|
|
||||||
'''
|
|
||||||
def get_details(self, search_result, timeout):
|
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()
|
br = browser()
|
||||||
with closing(br.open(search_result.detail_item, timeout=timeout)) as nf:
|
with closing(br.open(search_result.detail_item, timeout=timeout)) as nf:
|
||||||
idata = html.fromstring(nf.read())
|
idata = html.fromstring(nf.read())
|
||||||
@ -38,4 +41,3 @@ class ArchiveOrgStore(BasicStoreConfig, OpenSearchStore):
|
|||||||
search_result.formats = formats.upper()
|
search_result.formats = formats.upper()
|
||||||
|
|
||||||
return True
|
return True
|
||||||
'''
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user