(self, entry)
Add additional fields to an RSS item.

        :param feed: The RSS item XML element to use.
Add additional fields to an RSS item.
Add additional fields to an RSS item .
def extend_rss(self, entry):
        '''Add additional fields to an RSS item.

        :param feed: The RSS item XML element to use.
        '''
        if self.__torrent_filename:
            filename = xml_elem('{%s}filename' % TORRENT_NS, entry)
            filename.text = self.__torrent_filename

        if self.__torrent_contentlength:
            contentlength = xml_elem('{%s}contentlength' % TORRENT_NS, entry)
            contentlength.text = self.__torrent_contentlength

        if self.__torrent_infohash:
            infohash = xml_elem('{%s}infohash' % TORRENT_NS, entry)
            infohash.text = self.__torrent_infohash
            magnet = xml_elem('{%s}magneturi' % TORRENT_NS, entry)
            magnet.text = 'magnet:?xt=urn:btih:' + self.__torrent_infohash

        if self.__torrent_seeds:
            seeds = xml_elem('{%s}seed' % TORRENT_NS, entry)
            seeds.text = self.__torrent_seeds

        if self.__torrent_peers:
            peers = xml_elem('{%s}peers' % TORRENT_NS, entry)
            peers.text = self.__torrent_peers

        if self.__torrent_verified:
            verified = xml_elem('{%s}verified' % TORRENT_NS, entry)
            verified.text = self.__torrent_verified
def extend_rss ( self , entry ) : if self . __torrent_filename : filename = xml_elem ( '{%s}filename' % TORRENT_NS , entry ) filename . text = self . __torrent_filename if self . __torrent_contentlength : contentlength = xml_elem ( '{%s}contentlength' % TORRENT_NS , entry ) contentlength . text = self . __torrent_contentlength if self . __torrent_infohash : infohash = xml_elem ( '{%s}infohash' % TORRENT_NS , entry ) infohash . text = self . __torrent_infohash magnet = xml_elem ( '{%s}magneturi' % TORRENT_NS , entry ) magnet . text = 'magnet:?xt=urn:btih:' + self . __torrent_infohash if self . __torrent_seeds : seeds = xml_elem ( '{%s}seed' % TORRENT_NS , entry ) seeds . text = self . __torrent_seeds if self . __torrent_peers : peers = xml_elem ( '{%s}peers' % TORRENT_NS , entry ) peers . text = self . __torrent_peers if self . __torrent_verified : verified = xml_elem ( '{%s}verified' % TORRENT_NS , entry ) verified . text = self . __torrent_verified