From 6c3fd548a518b31b67d885e687ef01b2c81fba94 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 13 Aug 2019 11:16:41 +0530 Subject: [PATCH] ... --- recipes/wsj.recipe | 3 ++- recipes/wsj_free.recipe | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/recipes/wsj.recipe b/recipes/wsj.recipe index f40f3fedfe..5c13138c4f 100644 --- a/recipes/wsj.recipe +++ b/recipes/wsj.recipe @@ -114,7 +114,8 @@ class WSJ(BasicNewsRecipe): '_intstate': 'deprecated', } for k in 'scope connection nonce state ui_locales ns protocol redirect_uri'.split(): - request_query[k] = query[k] + if k in query: + request_query[k] = query[k] login_url = 'https://sso.accounts.dowjones.com/usernamepassword/login' # you can get the version below from lib-min.js # search for: str: "x.x.x" diff --git a/recipes/wsj_free.recipe b/recipes/wsj_free.recipe index 25726c0ca3..d9ecde365d 100644 --- a/recipes/wsj_free.recipe +++ b/recipes/wsj_free.recipe @@ -114,7 +114,8 @@ class WSJ(BasicNewsRecipe): '_intstate': 'deprecated', } for k in 'scope connection nonce state ui_locales ns protocol redirect_uri'.split(): - request_query[k] = query[k] + if k in query: + request_query[k] = query[k] login_url = 'https://sso.accounts.dowjones.com/usernamepassword/login' # you can get the version below from lib-min.js # search for: str: "x.x.x"