diff --git a/recipes/nytimes_sub.recipe b/recipes/nytimes_sub.recipe index 07a4c1bb57..96d67567d4 100644 --- a/recipes/nytimes_sub.recipe +++ b/recipes/nytimes_sub.recipe @@ -112,7 +112,7 @@ class NewYorkTimes(BasicNewsRecipe): if use_wayback_machine and not skip_wayback: from calibre import browser return self.nyt_parser.download_url(url, browser()) - return self.index_to_soup(url) + return self.index_to_soup(url, raw=True) def preprocess_raw_html(self, raw_html, url): if '/interactive/' in url: diff --git a/recipes/tls_mag.recipe b/recipes/tls_mag.recipe index 6114bce8d2..041df92226 100644 --- a/recipes/tls_mag.recipe +++ b/recipes/tls_mag.recipe @@ -117,6 +117,14 @@ class tls(BasicNewsRecipe): if 'bookdetails' in prim and prim['bookdetails']: bks += '
' + for a in prim['bookdetails']: + for x, y in a.items(): + if isinstance(y, str): + if x == 'imageurl': + bks += ''.format(y) + elif y: + bks += '
' + y + '
\n' + bks += '
' else: prim = title = desc = label = auth = lede = bks = ''