Remove affiliate links for Kobo Get books plugin

They dont work anymore and I cant be bothered working with Rakuten to
fix them.
This commit is contained in:
Kovid Goyal 2022-06-30 08:57:06 +05:30
parent d148645902
commit f70e39ca03
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 5 additions and 8 deletions

View File

@ -1650,7 +1650,7 @@ class StoreKoboStore(StoreBase):
headquarters = 'CA' headquarters = 'CA'
formats = ['EPUB'] formats = ['EPUB']
affiliate = True affiliate = False
class StoreLegimiStore(StoreBase): class StoreLegimiStore(StoreBase):

View File

@ -1,7 +1,7 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals from __future__ import absolute_import, division, print_function, unicode_literals
store_version = 10 # Needed for dynamic plugin loading store_version = 11 # Needed for dynamic plugin loading
__license__ = 'GPL 3' __license__ = 'GPL 3'
__copyright__ = '2011, John Schember <john@nachtimwald.com>' __copyright__ = '2011, John Schember <john@nachtimwald.com>'
@ -96,20 +96,17 @@ class KoboStore(BasicStoreConfig, StorePlugin):
minimum_calibre_version = (5, 40, 1) minimum_calibre_version = (5, 40, 1)
def open(self, parent=None, detail_item=None, external=False): def open(self, parent=None, detail_item=None, external=False):
pub_id = '0dsO3kDu/AU'
murl = 'https://click.linksynergy.com/fs-bin/click?id=%s&subid=&offerid=280046.1&type=10&tmpid=9310&RD_PARM1=http%%3A%%2F%%2Fkobo.com' % pub_id
if detail_item: if detail_item:
purl = 'https://click.linksynergy.com/link?id=%s&offerid=280046&type=2&murl=%s' % (pub_id, quote_plus(detail_item)) purl = detail_item
url = purl url = purl
else: else:
purl = None purl = None
url = murl url = 'https://kobo.com'
if external or self.config.get('open_external', False): if external or self.config.get('open_external', False):
open_url(url_slash_cleaner(url)) open_url(url_slash_cleaner(url))
else: else:
d = WebStoreDialog(self.gui, murl, parent, purl) d = WebStoreDialog(self.gui, url, parent, purl)
d.setWindowTitle(self.name) d.setWindowTitle(self.name)
d.set_tags(self.config.get('tags', '')) d.set_tags(self.config.get('tags', ''))
d.exec() d.exec()