Merge branch 'appledaily-patch-20170124' of https://github.com/Kennyl/calibre

This commit is contained in:
Kovid Goyal 2017-01-23 23:00:17 +05:30
commit 7d60a35f53

View File

@ -253,6 +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
soup = BeautifulSoup(src)
body = soup.find('body')
if body is not None: