From 741893dd26e634c51b7ec4994afa1eb21d7a9598 Mon Sep 17 00:00:00 2001 From: unkn0w7n <51942695+unkn0w7n@users.noreply.github.com> Date: Sun, 22 Sep 2024 21:58:35 +0530 Subject: [PATCH] Update tls_mag.recipe book details --- recipes/tls_mag.recipe | 8 ++++++++ 1 file changed, 8 insertions(+) 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 = ''