mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
8b607437c4
commit
e165bd4fde
@ -15,7 +15,7 @@ from calibre.utils.date import now as nowf
|
||||
import os, datetime, re
|
||||
from calibre.web.feeds.recipes import BasicNewsRecipe
|
||||
from contextlib import nested
|
||||
from calibre.ebooks.BeautifulSoup import BeautifulSoup, Tag
|
||||
from calibre.ebooks.BeautifulSoup import BeautifulSoup
|
||||
from calibre.ebooks.metadata.opf2 import OPFCreator
|
||||
from calibre.ebooks.metadata.toc import TOC
|
||||
from calibre.ebooks.metadata import MetaInformation
|
||||
|
@ -7,7 +7,6 @@ __license__ = 'GPL 3'
|
||||
__copyright__ = '2011, John Schember <john@nachtimwald.com>'
|
||||
__docformat__ = 'restructuredtext en'
|
||||
|
||||
import random
|
||||
from contextlib import closing
|
||||
|
||||
from lxml import html
|
||||
@ -32,7 +31,7 @@ class AmazonCAKindleStore(StorePlugin):
|
||||
def open(self, parent=None, detail_item=None, external=False):
|
||||
#aff_id = {'tag': ''}
|
||||
# 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):
|
||||
# aff_id['tag'] = 'calibrebs-20'
|
||||
# store_link = 'http://www.amazon.ca/Kindle-eBooks/b/?ie=UTF&node=1286228011&ref_=%(tag)s&ref=%(tag)s&tag=%(tag)s&linkCode=ur2&camp=1789&creative=390957' % aff_id
|
||||
store_link = 'http://www.amazon.ca/ebooks-kindle/b/ref=sa_menu_kbo?ie=UTF8&node=2980423011'
|
||||
|
@ -7,7 +7,6 @@ __license__ = 'GPL 3'
|
||||
__copyright__ = '2012-2013, Tomasz Długosz <tomek3d@gmail.com>'
|
||||
__docformat__ = 'restructuredtext en'
|
||||
|
||||
import re
|
||||
import urllib
|
||||
from contextlib import closing
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user