mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Merge branch 'master' of https://github.com/jn8029/calibre
This commit is contained in:
commit
94c6624958
@ -148,7 +148,7 @@ class WSJ(BasicNewsRecipe):
|
|||||||
self.log('Performing login callback...')
|
self.log('Performing login callback...')
|
||||||
res = br.submit()
|
res = br.submit()
|
||||||
self.wsj_itp_page = raw = res.read()
|
self.wsj_itp_page = raw = res.read()
|
||||||
if b'>Sign Out<' not in raw:
|
if b'logout' not in raw:
|
||||||
raise ValueError(
|
raise ValueError(
|
||||||
'Failed to login (callback URL failed), check username and password')
|
'Failed to login (callback URL failed), check username and password')
|
||||||
return br
|
return br
|
||||||
|
@ -148,7 +148,7 @@ class WSJ(BasicNewsRecipe):
|
|||||||
self.log('Performing login callback...')
|
self.log('Performing login callback...')
|
||||||
res = br.submit()
|
res = br.submit()
|
||||||
self.wsj_itp_page = raw = res.read()
|
self.wsj_itp_page = raw = res.read()
|
||||||
if b'>Sign Out<' not in raw:
|
if b'>logout<' not in raw:
|
||||||
raise ValueError(
|
raise ValueError(
|
||||||
'Failed to login (callback URL failed), check username and password')
|
'Failed to login (callback URL failed), check username and password')
|
||||||
return br
|
return br
|
||||||
|
Loading…
x
Reference in New Issue
Block a user