Merge lp:~user-none/calibre/dev into lp:calibre

Proposed by John Schember
Status: Merged
Merged at revision: 14847
Proposed branch: lp:~user-none/calibre/dev
Merge into: lp:calibre
Diff against target: 34 lines (+11/-3)
1 file modified
src/calibre/gui2/store/stores/nook_uk_plugin.py (+11/-3)
To merge this branch: bzr merge lp:~user-none/calibre/dev
Reviewer Review Type Date Requested Status
Kovid Goyal Pending
Review via email: mp+160529@code.launchpad.net
To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/calibre/gui2/store/stores/nook_uk_plugin.py'
2--- src/calibre/gui2/store/stores/nook_uk_plugin.py 2013-01-14 06:20:23 +0000
3+++ src/calibre/gui2/store/stores/nook_uk_plugin.py 2013-04-24 00:15:36 +0000
4@@ -1,7 +1,7 @@
5 # -*- coding: utf-8 -*-
6
7 from __future__ import (unicode_literals, division, absolute_import, print_function)
8-store_version = 1 # Needed for dynamic plugin loading
9+store_version = 2 # Needed for dynamic plugin loading
10
11 __license__ = 'GPL 3'
12 __copyright__ = '2012, John Schember <john@nachtimwald.com>'
13@@ -25,11 +25,19 @@
14 class NookUKStore(BasicStoreConfig, StorePlugin):
15
16 def open(self, parent=None, detail_item=None, external=False):
17- url = "http://uk.nook.com"
18+ url = 'http://www.awin1.com/awclick.php?mid=5266&id=120917'
19+ detail_url = 'http://www.awin1.com/cread.php?awinmid=5266&awinaffid=120917&clickref=&p='
20
21 if external or self.config.get('open_external', False):
22- open_url(QUrl(url_slash_cleaner(detail_item if detail_item else url)))
23+ if detail_item:
24+ url = detail_url + detail_item
25+
26+ open_url(QUrl(url_slash_cleaner(url)))
27 else:
28+ if detail_item:
29+ detail_url = detail_url + detail_item
30+ else:
31+ detail_url = None
32 d = WebStoreDialog(self.gui, url, parent, detail_item)
33 d.setWindowTitle(self.name)
34 d.set_tags(self.config.get('tags', ''))

Subscribers

People subscribed via source and target branches

to status/vote changes: