Skip to content

Commit

Permalink
Remove some affiliate ids.
Browse files Browse the repository at this point in the history
  • Loading branch information
user-none committed Jun 15, 2015
1 parent cc3d159 commit 4d0f94c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 13 deletions.
10 changes: 3 additions & 7 deletions src/calibre/gui2/store/stores/ebooks_com_plugin.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-

from __future__ import (unicode_literals, division, absolute_import, print_function)
store_version = 1 # Needed for dynamic plugin loading
store_version = 2 # Needed for dynamic plugin loading

__license__ = 'GPL 3'
__copyright__ = '2011, John Schember <[email protected]>'
Expand All @@ -27,12 +27,8 @@ class EbookscomStore(BasicStoreConfig, StorePlugin):

def open(self, parent=None, detail_item=None, external=False):
m_url = 'http://www.dpbolvw.net/'
h_click = 'click-4879827-10364500'
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 = 'click-4913808-10364500'
d_click = 'click-4913808-10281551'
h_click = 'click-4913808-10364500'
d_click = 'click-4913808-10281551'

url = m_url + h_click
detail_url = None
Expand Down
8 changes: 2 additions & 6 deletions src/calibre/gui2/store/stores/kobo_plugin.py
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>'
Expand Down Expand Up @@ -86,11 +86,7 @@ class KoboStore(BasicStoreConfig, StorePlugin):
minimum_calibre_version = (2, 21, 0)

def open(self, parent=None, detail_item=None, external=False):
pub_id = 'sHa5EXvYOwA'
# Use Kovid's affiliate id 30% of the time.
if random.randint(1, 10) in (1, 2, 3):
pub_id = '0dsO3kDu/AU'

pub_id = '0dsO3kDu/AU'
murl = 'http://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:
Expand Down

0 comments on commit 4d0f94c

Please sign in to comment.