From 2f915e33f6c3417bea76979bd4555f6ed58d583d Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 20 Jul 2018 21:28:32 +0530 Subject: [PATCH] Update Private Eye Fix #1782759 [Private Eye news fetch fails](https://bugs.launchpad.net/calibre/+bug/1782759) --- recipes/private_eye.recipe | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/recipes/private_eye.recipe b/recipes/private_eye.recipe index e9a20421e2..d16376755d 100644 --- a/recipes/private_eye.recipe +++ b/recipes/private_eye.recipe @@ -165,7 +165,7 @@ class PrivateEyeRecipe(BasicNewsRecipe): current_section = piece.string elif tag_class == ('a', 'header'): self.add_article(title, url, r"\r\n".join(descriptions)) - title = piece.string.rstrip(u' »').strip() + title = self.tag_to_string(piece).rstrip(u' »').strip() url = self.fix_url(piece.get('href', '')) descriptions = [] else: @@ -198,7 +198,7 @@ class PrivateEyeRecipe(BasicNewsRecipe): url = self.fix_url(title_tag.get('href', '')) desc_tag = more.find('a', {'class': 'header'}) if desc_tag: - descriptions.append(desc_tag.string) + descriptions.append(self.tag_to_string(desc_tag)) if not url: url = self.fix_url(desc_tag.get('href', '')) self.add_article(title, url, r"\r\n".join(descriptions))