Fix Video Player Space

flow-player parent div to display none
This commit is contained in:
Kennyl 2017-01-24 01:13:22 +08:00 committed by GitHub
parent b581e6cef4
commit a32a230fc9

View File

@ -253,6 +253,7 @@ class AppleDaily(BasicNewsRecipe):
if os.path.exists(last): if os.path.exists(last):
with open(last, 'rb') as fi: with open(last, 'rb') as fi:
src = fi.read().decode('utf-8') src = fi.read().decode('utf-8')
src = src.replace('height:260px !important;','display:none') #fix flow-player div tag parent
soup = BeautifulSoup(src) soup = BeautifulSoup(src)
body = soup.find('body') body = soup.find('body')
if body is not None: if body is not None: