From 100945624c7e6842dd1ace545301fe9da3affdb7 Mon Sep 17 00:00:00 2001 From: unkn0w7n <51942695+unkn0w7n@users.noreply.github.com> Date: Thu, 19 Jun 2025 19:59:40 +0530 Subject: [PATCH] Update tls_mag.recipe --- recipes/tls_mag.recipe | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/recipes/tls_mag.recipe b/recipes/tls_mag.recipe index 2be795327e..7a3e6ea286 100644 --- a/recipes/tls_mag.recipe +++ b/recipes/tls_mag.recipe @@ -52,13 +52,13 @@ class TLS(BasicNewsRecipe): } def parse_index(self): - issue = 'https://www.the-tls.co.uk/issues/current-issue/' + issue = 'https://www.the-tls.com/issues/current-issue/' d = self.recipe_specific_options.get('date') if d and isinstance(d, str): - issue = 'https://www.the-tls.co.uk/issues/' + d + '/' + issue = 'https://www.the-tls.com/issues/' + d + '/' - url = 'https://www.the-tls.co.uk/wp-json/tls/v2/contents-page/' + get_id(issue) + url = 'https://www.the-tls.com/wp-json/tls/v2/contents-page/' + get_id(issue) raw = self.index_to_soup(url, raw=True) data = json.loads(raw) self.cover_url = data['featuredimage']['full_image'].split('?')[0] + '?w=600' @@ -141,7 +141,7 @@ class TLS(BasicNewsRecipe): i['full_image'] + '?w600', i['imagecaption'] + ' ' + i['imagecredit'] + '' ) - cont = self.index_to_soup('https://www.the-tls.co.uk/wp-json/wp/v2/tls_articles/' + data['ID'], raw=True) + cont = self.index_to_soup('https://www.the-tls.com/wp-json/wp/v2/tls_articles/' + data['ID'], raw=True) c_data = json.loads(cont) body = c_data['content']['rendered']