mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Kovid's aid for diesel.
This commit is contained in:
parent
a6a0b6ece3
commit
df52819199
@ -22,8 +22,8 @@ class DieselEbooksStore(BasicStoreConfig, StorePlugin):
|
||||
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…
x
Reference in New Issue
Block a user