mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-03 18:33:33 +02:00
Kovid's aid for diesel.
This commit is contained in:
parent
a6a0b6ece3
commit
df52819199
1 changed files with 2 additions and 2 deletions
|
|
@ -22,8 +22,8 @@ def open(self, parent=None, detail_item=None, external=False):
|
|||
settings = self.get_settings()
|
||||
aff_id = '2049'
|
||||
# Use Kovid's affiliate id 30% of the time.
|
||||
#if random.randint(1, 10) in (1, 2, 3):
|
||||
#aff_id = ''
|
||||
if random.randint(1, 10) in (1, 2, 3):
|
||||
aff_id = '2053'
|
||||
d = WebStoreDialog(self.gui, 'http://www.diesel-ebooks.com/?aid=%s' % aff_id, parent, detail_item)
|
||||
d.setWindowTitle(self.name)
|
||||
d.set_tags(settings.get(self.name + '_tags', ''))
|
||||
|
|
|
|||
Loading…
Reference in a new issue