mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
...
This commit is contained in:
commit
fab5158a17
@ -1402,7 +1402,6 @@ class StoreEmpikStore(StoreBase):
|
|||||||
|
|
||||||
headquarters = 'PL'
|
headquarters = 'PL'
|
||||||
formats = ['EPUB', 'MOBI', 'PDF']
|
formats = ['EPUB', 'MOBI', 'PDF']
|
||||||
affiliate = True
|
|
||||||
|
|
||||||
class StoreEscapeMagazineStore(StoreBase):
|
class StoreEscapeMagazineStore(StoreBase):
|
||||||
name = 'EscapeMagazine'
|
name = 'EscapeMagazine'
|
||||||
|
@ -25,15 +25,10 @@ from calibre.gui2.store.web_store_dialog import WebStoreDialog
|
|||||||
class EmpikStore(BasicStoreConfig, StorePlugin):
|
class EmpikStore(BasicStoreConfig, StorePlugin):
|
||||||
|
|
||||||
def open(self, parent=None, detail_item=None, external=False):
|
def open(self, parent=None, detail_item=None, external=False):
|
||||||
plain_url = 'http://www.empik.com/ebooki'
|
url = 'http://www.empik.com/ebooki'
|
||||||
url = 'https://ssl.afiliant.com/affskrypt,,2f9de2,,23c7f,,,?u=(' + plain_url + ')'
|
|
||||||
detail_url = None
|
|
||||||
|
|
||||||
if detail_item:
|
|
||||||
detail_url = 'https://ssl.afiliant.com/affskrypt,,2f9de2,,23c7f,,,?u=(' + detail_item + ')'
|
|
||||||
|
|
||||||
if external or self.config.get('open_external', False):
|
if external or self.config.get('open_external', False):
|
||||||
open_url(QUrl(url_slash_cleaner(detail_url if detail_url else url)))
|
open_url(QUrl(url_slash_cleaner(detail_item if detail_item else url)))
|
||||||
else:
|
else:
|
||||||
d = WebStoreDialog(self.gui, url, parent, detail_url)
|
d = WebStoreDialog(self.gui, url, parent, detail_url)
|
||||||
d.setWindowTitle(self.name)
|
d.setWindowTitle(self.name)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user