mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #1993913 [Private bug](https://bugs.launchpad.net/calibre/+bug/1993913)
This commit is contained in:
parent
3c5b4bf212
commit
7f274951fa
@ -64,6 +64,9 @@ class BarronsMagazine(BasicNewsRecipe):
|
||||
'_intstate': 'deprecated',
|
||||
'connection': 'DJldap',
|
||||
}
|
||||
for cookie in br.cookiejar:
|
||||
if cookie.name in ('_csrf', 'csrf'):
|
||||
request_query['_csrf'] = cookie.value
|
||||
for k in 'scope connection nonce state ui_locales ns protocol redirect_uri'.split():
|
||||
if k in query:
|
||||
request_query[k] = query[k]
|
||||
|
@ -134,8 +134,8 @@ class WSJ(BasicNewsRecipe):
|
||||
},
|
||||
}
|
||||
for cookie in br.cookiejar:
|
||||
if cookie.name == '_csrf':
|
||||
request_query[cookie.name] = cookie.value
|
||||
if cookie.name in ('_csrf', 'csrf'):
|
||||
request_query['_csrf'] = cookie.value
|
||||
for k in 'scope connection nonce state ui_locales ns mars protocol redirect_uri'.split():
|
||||
if k in query:
|
||||
request_query[k] = query[k]
|
||||
|
@ -134,8 +134,8 @@ class WSJ(BasicNewsRecipe):
|
||||
},
|
||||
}
|
||||
for cookie in br.cookiejar:
|
||||
if cookie.name == '_csrf':
|
||||
request_query[cookie.name] = cookie.value
|
||||
if cookie.name in ('_csrf', 'csrf'):
|
||||
request_query['_csrf'] = cookie.value
|
||||
for k in 'scope connection nonce state ui_locales ns mars protocol redirect_uri'.split():
|
||||
if k in query:
|
||||
request_query[k] = query[k]
|
||||
|
Loading…
x
Reference in New Issue
Block a user