From: Brett Parker Date: Mon, 3 Mar 2008 11:58:08 +0000 (+0000) Subject: Fix issue with images having the same alt value but different urls X-Git-Url: https://git.sommitrealweird.co.uk/rss2maildir.git/commitdiff_plain/17148f77fac59add006e131c439b41da9d8d2b43?ds=inline Fix issue with images having the same alt value but different urls --- diff --git a/rss2maildir.py b/rss2maildir.py index d36b489..86387f9 100755 --- a/rss2maildir.py +++ b/rss2maildir.py @@ -313,12 +313,11 @@ class HTML2Text(HTMLParser): else: while self.images.has_key(alt): alt = alt + "_" - self.images[alt]["url"] = url + self.images[alt] = {"url": url} self.curdata = self.curdata \ + u'|%s|' %(alt,) else: - self.images[alt] = {} - self.images[alt]["url"] = url + self.images[alt] = {"url": url} self.curdata = self.curdata \ + u'|%s|' %(alt,) else: