Update plugin for new affiliate codes.

This commit is contained in:
Charles Haley 2017-11-17 17:40:33 +01:00
parent a19bc736e9
commit 1323644b8d

View File

@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
from __future__ import (unicode_literals, division, absolute_import, print_function)
store_version = 4 # Needed for dynamic plugin loading
store_version = 5 # Needed for dynamic plugin loading
__license__ = 'GPL 3'
__copyright__ = '2011, John Schember <john@nachtimwald.com>'
@ -25,9 +25,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 = 'http://ad.zanox.com/ppc/?18817073C15644254T'
url_details = ('http://ad.zanox.com/ppc/?18848208C1197627693T&ULP=[['
'http://www.ebook.de/shop/action/productDetails?artiId={0}]]')
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}')
if external or self.config.get('open_external', False):
if detail_item: