Remove Div's style safer than before

display:none change to nothing
This commit is contained in:
Kennyl 2017-01-24 14:24:59 +08:00 committed by GitHub
parent 86f5bb8c6d
commit fa0279ec41

View File

@ -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: