From 7334080406d417f9a33d8e6f416073f61fad4874 Mon Sep 17 00:00:00 2001 From: Charles Haley Date: Sun, 30 Jan 2022 11:25:49 +0000 Subject: [PATCH 1/2] New affiliate program for ebook.de --- src/calibre/gui2/store/stores/libri_de_plugin.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/calibre/gui2/store/stores/libri_de_plugin.py b/src/calibre/gui2/store/stores/libri_de_plugin.py index e7fbcf7398..9acd52c88c 100644 --- a/src/calibre/gui2/store/stores/libri_de_plugin.py +++ b/src/calibre/gui2/store/stores/libri_de_plugin.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function, unicode_literals -store_version = 6 # Needed for dynamic plugin loading +store_version = 7 # Needed for dynamic plugin loading __license__ = 'GPL 3' __copyright__ = '2011, John Schember ' @@ -28,9 +28,9 @@ from calibre.gui2.store.web_store_dialog import WebStoreDialog class LibreDEStore(BasicStoreConfig, StorePlugin): def open(self, parent=None, detail_item=None, external=False): - url = 'https://www.awin1.com/awclick.php?mid=9359&awinaffid=397537&clickref=gbhome' - url_details = ('https://www.awin1.com/cread.php?awinmid=9359&awinaffid=397537&clickref=gbdetails&p=' - 'http%3A//www.ebook.de/shop/action/productDetails%3FartiId%3D{0}') + url = 'https://clk.tradedoubler.com/click?p=324630&a=3252627' + url_details = ('https://clk.tradedoubler.com/click?p=324630&a=3252627' + '&url=http://www.ebook.de/shop/action/productDetails?artiId={0}') if external or self.config.get('open_external', False): if detail_item: From 1009054cf28e92df9a171fcd778f04fcc3f1b5b5 Mon Sep 17 00:00:00 2001 From: Charles Haley Date: Sun, 30 Jan 2022 11:54:29 +0000 Subject: [PATCH 2/2] Ooops. Really did need to escape the URL --- src/calibre/gui2/store/stores/libri_de_plugin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/calibre/gui2/store/stores/libri_de_plugin.py b/src/calibre/gui2/store/stores/libri_de_plugin.py index 9acd52c88c..f3cbe7bc4a 100644 --- a/src/calibre/gui2/store/stores/libri_de_plugin.py +++ b/src/calibre/gui2/store/stores/libri_de_plugin.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function, unicode_literals -store_version = 7 # Needed for dynamic plugin loading +store_version = 8 # Needed for dynamic plugin loading __license__ = 'GPL 3' __copyright__ = '2011, John Schember ' @@ -30,7 +30,7 @@ class LibreDEStore(BasicStoreConfig, StorePlugin): def open(self, parent=None, detail_item=None, external=False): url = 'https://clk.tradedoubler.com/click?p=324630&a=3252627' url_details = ('https://clk.tradedoubler.com/click?p=324630&a=3252627' - '&url=http://www.ebook.de/shop/action/productDetails?artiId={0}') + '&url=https%3A%2F%2Fwww.ebook.de%2Fshop%2Faction%2FproductDetails%3FartiId%3D{0}') if external or self.config.get('open_external', False): if detail_item: