Chris Lamb wrote: > The attached patch modifies the parsing of <media:title/> tags so that they > do not override a <title/> tag if one is set.
(Actually attaching patch) Regards, -- Chris Lamb, UK [EMAIL PROTECTED] GPG: 0x634F9A20
diff -urNad feedparser-4.1.orig/feedparser.py feedparser-4.1/feedparser.py --- feedparser-4.1.orig/feedparser.py 2008-07-13 05:04:17.000000000 +0100 +++ feedparser-4.1/feedparser.py 2008-07-13 05:04:57.000000000 +0100 @@ -1187,7 +1187,9 @@ def _start_title(self, attrsD): self.pushContent('title', attrsD, 'text/plain', self.infeed or self.inentry or self.insource) _start_dc_title = _start_title - _start_media_title = _start_title + + def _start_media_title(self, attrsD): + self.pushContent('title', attrsD, 'text/plain', self.title or self.infeed or self.inentry or self.insource) def _end_title(self): value = self.popContent('title')
signature.asc
Description: PGP signature