~michael-sheldon/moovida/network-remote

« back to all changes in this revision

Viewing changes to elisa-plugins/elisa/plugins/rss/models.py

  • Committer: Guido Amoruso
  • Date: 2008-12-12 11:53:31 UTC
  • mfrom: (980.1.5 rss_model)
  • Revision ID: guidonte@fluendo.com-20081212115331-9a74gmb3i6by88p1
Strip the spaces from RSS items' title and description.

Show diffs side-by-side

added added

removed removed

Lines of Context:
122
122
    def _fill_item(self, item, element):
123
123
        """Parse one RSS item."""
124
124
 
125
 
        item.title = _get_text(element, './title')
 
125
        item.title = _get_text(element, './title').strip()
126
126
 
127
127
        item.description = _get_text(element,
128
128
            './description',
129
129
            './{%s}description' % known_specs['media'],
130
130
            './{%s}summary' % known_specs['itunes'],
131
 
        )
 
131
        ).strip()
132
132
 
133
133
        item.type = _get_attr(element,
134
134
            ('./enclosure', 'type'),