mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2026-04-28 09:54:14 +02:00
Fix for pre-existing epubs with stripped img tags without breaking images.
This commit is contained in:
parent
0917460e68
commit
ce2de180d2
1 changed files with 1 additions and 1 deletions
|
|
@ -285,7 +285,7 @@ class BaseSiteAdapter(Configurable):
|
|||
acceptable_attributes.extend(('src','alt','longdesc'))
|
||||
for img in soup.findAll('img'):
|
||||
# some pre-existing epubs have img tags that had src stripped off.
|
||||
if 'src' in img:
|
||||
if img.has_key('src'):
|
||||
img['longdesc']=img['src']
|
||||
img['src']=self.story.addImgUrl(self,url,img['src'],fetch)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue