mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix Kobo aff id. Add Kobo and ebooks.com aff ids for Kovid.
This commit is contained in:
parent
fad6742d67
commit
bcfe58bebd
@ -31,9 +31,8 @@ class EbookscomStore(BasicStoreConfig, StorePlugin):
|
|||||||
d_click = 'click-4879827-10281551'
|
d_click = 'click-4879827-10281551'
|
||||||
# Use Kovid's affiliate id 30% of the time.
|
# Use Kovid's affiliate id 30% of the time.
|
||||||
if random.randint(1, 10) in (1, 2, 3):
|
if random.randint(1, 10) in (1, 2, 3):
|
||||||
#h_click = ''
|
h_click = 'click-4913808-10364500'
|
||||||
#d_click = ''
|
d_click = 'click-4913808-10281551'
|
||||||
pass
|
|
||||||
|
|
||||||
url = m_url + h_click
|
url = m_url + h_click
|
||||||
detail_url = None
|
detail_url = None
|
||||||
|
@ -27,13 +27,12 @@ class KoboStore(BasicStoreConfig, StorePlugin):
|
|||||||
settings = self.get_settings()
|
settings = self.get_settings()
|
||||||
|
|
||||||
m_url = 'http://www.dpbolvw.net/'
|
m_url = 'http://www.dpbolvw.net/'
|
||||||
h_click = 'click-4879827-10755858'
|
h_click = 'click-4879827-10762497'
|
||||||
d_click = 'click-4879827-10772898'
|
d_click = 'click-4879827-10772898'
|
||||||
# Use Kovid's affiliate id 30% of the time.
|
# Use Kovid's affiliate id 30% of the time.
|
||||||
if random.randint(1, 10) in (1, 2, 3):
|
if random.randint(1, 10) in (1, 2, 3):
|
||||||
#h_click = ''
|
h_click = 'click-4913808-10762497'
|
||||||
#d_click = ''
|
d_click = 'click-4913808-10772898'
|
||||||
pass
|
|
||||||
|
|
||||||
url = m_url + h_click
|
url = m_url + h_click
|
||||||
detail_url = None
|
detail_url = None
|
||||||
|
Loading…
x
Reference in New Issue
Block a user