From fa0279ec41b50b08f1edc0520250721d47fdb0a8 Mon Sep 17 00:00:00 2001 From: Kennyl Date: Tue, 24 Jan 2017 14:24:59 +0800 Subject: [PATCH] Remove Div's style safer than before display:none change to nothing --- recipes/apple_daily.recipe | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/apple_daily.recipe b/recipes/apple_daily.recipe index 98828bfd56..8ac2c58060 100644 --- a/recipes/apple_daily.recipe +++ b/recipes/apple_daily.recipe @@ -253,7 +253,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;','display:none') #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: