From bcfe58bebdd2e95c8f387e3cf864f06d15764440 Mon Sep 17 00:00:00 2001 From: John Schember Date: Mon, 7 Mar 2011 18:27:39 -0500 Subject: [PATCH] Fix Kobo aff id. Add Kobo and ebooks.com aff ids for Kovid. --- src/calibre/gui2/store/ebooks_com_plugin.py | 5 ++--- src/calibre/gui2/store/kobo_plugin.py | 7 +++---- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/src/calibre/gui2/store/ebooks_com_plugin.py b/src/calibre/gui2/store/ebooks_com_plugin.py index da00aa2fee..05f4e58d26 100644 --- a/src/calibre/gui2/store/ebooks_com_plugin.py +++ b/src/calibre/gui2/store/ebooks_com_plugin.py @@ -31,9 +31,8 @@ class EbookscomStore(BasicStoreConfig, StorePlugin): d_click = 'click-4879827-10281551' # Use Kovid's affiliate id 30% of the time. if random.randint(1, 10) in (1, 2, 3): - #h_click = '' - #d_click = '' - pass + h_click = 'click-4913808-10364500' + d_click = 'click-4913808-10281551' url = m_url + h_click detail_url = None diff --git a/src/calibre/gui2/store/kobo_plugin.py b/src/calibre/gui2/store/kobo_plugin.py index 5e5db4ec82..9941c02837 100644 --- a/src/calibre/gui2/store/kobo_plugin.py +++ b/src/calibre/gui2/store/kobo_plugin.py @@ -27,13 +27,12 @@ class KoboStore(BasicStoreConfig, StorePlugin): settings = self.get_settings() m_url = 'http://www.dpbolvw.net/' - h_click = 'click-4879827-10755858' + h_click = 'click-4879827-10762497' d_click = 'click-4879827-10772898' # Use Kovid's affiliate id 30% of the time. if random.randint(1, 10) in (1, 2, 3): - #h_click = '' - #d_click = '' - pass + h_click = 'click-4913808-10762497' + d_click = 'click-4913808-10772898' url = m_url + h_click detail_url = None