diff --git a/recipes/wsj_mag.recipe b/recipes/wsj_mag.recipe index b09aeccdb1..890f04a2d8 100644 --- a/recipes/wsj_mag.recipe +++ b/recipes/wsj_mag.recipe @@ -111,7 +111,6 @@ class WSJ(BasicNewsRecipe): for itm in catalog['items']: if itm['type'] == 'MAG': date = itm['date'] - key = itm['key'] manifest = itm['manifest'] self.title = 'WSJ. Magazine: ' + itm['label'] @@ -140,14 +139,14 @@ class WSJ(BasicNewsRecipe): for art in data: title = data[art]['headline'] desc = data[art]['summary'] - url = index + '/contents/v1/wsj/us/' + key + '/' + data[art]['filename'] + url = index + manifest.rsplit('/', 1)[0] + '/' + data[art]['filename'] self.log(' ', title, '\n\t', desc) articles.append({'title': title, 'description':desc, 'url': url}) data = sec_parse['decos'] for art in data: title = data[art]['headline'] desc = data[art]['summary'] - url = index + '/contents/v1/wsj/us/' + key + '/' + data[art]['filename'] + url = index + manifest.rsplit('/', 1)[0] + '/' + data[art]['filename'] self.log(' ', title, '\n\t', desc) articles.append({'title': title, 'description':desc, 'url': url}) feeds.append((section, articles)) diff --git a/recipes/wsj_news.recipe b/recipes/wsj_news.recipe index 9926ae906c..d79f405b13 100644 --- a/recipes/wsj_news.recipe +++ b/recipes/wsj_news.recipe @@ -150,7 +150,6 @@ class WSJ(BasicNewsRecipe): catalog = json.loads(self.index_to_soup(index + '/catalogs/v1/wsj/us/catalog.json', raw=True)) for itm in catalog['items']: if itm['key'] == 'NOW': - key = itm['key'] manifest = itm['manifest'] break @@ -177,7 +176,7 @@ class WSJ(BasicNewsRecipe): continue title = data[art]['headline'] desc = data[art]['summary'] - url = index + '/contents/v1/wsj/us/' + key + '/' + data[art]['filename'] + url = index + manifest.rsplit('/', 1)[0] + '/' + data[art]['filename'] self.log(' ', title, '\n\t', desc) articles.append({'title': title, 'description':desc, 'url': url}) feeds.append((section, articles))