Remove space on substack replacement

Space is causing an invalid URL
This commit is contained in:
Josemy Duarte
2024-11-10 19:11:00 +01:00
committed by GitHub
parent 723eabfc53
commit b980f77bfc
+1 -1
View File
@@ -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):