From 57229e839d03b549d7bce31de9bb6bac858f700e Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 27 Jan 2017 09:15:36 +0530 Subject: [PATCH] pep8 --- recipes/am730.recipe | 2 +- recipes/apple_daily.recipe | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/recipes/am730.recipe b/recipes/am730.recipe index e0aeb444da..5208125a22 100644 --- a/recipes/am730.recipe +++ b/recipes/am730.recipe @@ -44,7 +44,7 @@ class AM730(BasicNewsRecipe): ignore_duplicate_articles = {'title', 'url'} debug=False - + def get_cover_url(self): return self.masthead_url diff --git a/recipes/apple_daily.recipe b/recipes/apple_daily.recipe index 570c392e8c..688e692c1f 100644 --- a/recipes/apple_daily.recipe +++ b/recipes/apple_daily.recipe @@ -254,7 +254,7 @@ class AppleDaily(BasicNewsRecipe): if os.path.exists(last): with open(last, 'rb') as fi: src = fi.read().decode('utf-8') - src = src.replace('height:260px !important;','') #fix flow-player div tag parent + src = src.replace('height:260px !important;','') # fix flow-player div tag parent soup = BeautifulSoup(src) body = soup.find('body') if body is not None: @@ -264,8 +264,10 @@ class AppleDaily(BasicNewsRecipe): not self.has_single_feed, a.orig_url, __appname__, prefix=prefix, center=self.center_navbar) - translatedTempl =re.sub('本篇由 '+__appname__+' 快取自 蘋果日報 ; 本篇來源位置。'+ - '本篇由 '+__appname__+ + ' 快取自 蘋果日報 ; 本篇來源位置。'+ + '