mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2026-01-06 08:05:28 +01:00
Adding replace_broken_smilies--needs completion yet.
This commit is contained in:
parent
6da54ba6c4
commit
78c9f801a6
1 changed files with 2 additions and 1 deletions
|
|
@ -518,7 +518,8 @@ class BaseXenForoForumAdapter(BaseSiteAdapter):
|
|||
|
||||
def _do_utf8FromSoup(self,url,soup,fetch=None,allow_replace_br_with_p=True):
|
||||
if self.getConfig('replace_broken_smilies'):
|
||||
for img in soup.find_all('img',src=re.compile(r'(failedtodownload|clear.png)$')):
|
||||
for img in soup.find_all('img',src=re.compile(r'(failedtoload|clear.png)$')):
|
||||
logger.debug("replace_broken_smilies? %s"%img)
|
||||
clses = unicode(img['class']) # stringify.
|
||||
if img.has_attr('alt') and 'mceSmilie' in clses :
|
||||
## put a span around the clear image with alt text instead?
|
||||
|
|
|
|||
Loading…
Reference in a new issue