From b980f77bfcd7f4fdba0b8dbea682ca5cfda93c73 Mon Sep 17 00:00:00 2001 From: Josemy Duarte Date: Sun, 10 Nov 2024 19:11:00 +0100 Subject: [PATCH] Remove space on substack replacement Space is causing an invalid URL --- recipes/substack.recipe | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/substack.recipe b/recipes/substack.recipe index 2f15bc5050..059eaa1277 100644 --- a/recipes/substack.recipe +++ b/recipes/substack.recipe @@ -94,7 +94,7 @@ class Substack(BasicNewsRecipe): u = self.recipe_specific_options.get('auths') if u and isinstance(u, str): for x in u.split(): - ans.append('https://' + x.replace('@', ' ') + '.substack.com/feed') + ans.append('https://' + x.replace('@', '') + '.substack.com/feed') return ans def preprocess_html(self, soup):