mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Update Harper's Magazine
Merge branch 'master' of https://github.com/timpalpant/calibre
This commit is contained in:
commit
5d9ab082b7
@ -29,7 +29,7 @@ class Harpers_full(BasicNewsRecipe):
|
|||||||
needs_subscription = 'optional'
|
needs_subscription = 'optional'
|
||||||
masthead_url = 'http://harpers.org/wp-content/themes/harpers/images/pheader.gif'
|
masthead_url = 'http://harpers.org/wp-content/themes/harpers/images/pheader.gif'
|
||||||
publication_type = 'magazine'
|
publication_type = 'magazine'
|
||||||
LOGIN = 'http://harpers.org/wp-content/themes/harpers/ajax_login.php'
|
LOGIN = 'http://harpers.org/wp-admin/admin-ajax.php'
|
||||||
extra_css = """
|
extra_css = """
|
||||||
body{font-family: adobe-caslon-pro,serif}
|
body{font-family: adobe-caslon-pro,serif}
|
||||||
.category{font-size: small}
|
.category{font-size: small}
|
||||||
@ -55,7 +55,8 @@ class Harpers_full(BasicNewsRecipe):
|
|||||||
br.open('http://harpers.org/')
|
br.open('http://harpers.org/')
|
||||||
if self.username is not None and self.password is not None:
|
if self.username is not None and self.password is not None:
|
||||||
tt = time.localtime()*1000
|
tt = time.localtime()*1000
|
||||||
data = urllib.urlencode({ 'm':self.username
|
data = urllib.urlencode({ 'action':'cds_auth_user'
|
||||||
|
,'m':self.username
|
||||||
,'p':self.password
|
,'p':self.password
|
||||||
,'rt':'http://harpers.org/'
|
,'rt':'http://harpers.org/'
|
||||||
,'tt':tt
|
,'tt':tt
|
||||||
|
Loading…
x
Reference in New Issue
Block a user