Contents

feedgen.ext.torrent

Extends the FeedGenerator to produce torrent feeds.

copyright:

2016, Raspbeguy <raspbeguy@hashtagueule.fr>

license:

FreeBSD and LGPL, see license.* for more details.

class feedgen.ext.torrent.TorrentEntryExtension

FeedEntry extension for torrent feeds

contentlength(torrent_contentlength=None)

Get or set the size of the target file.

Parameters:

torrent_contentlength – The target file size.

Returns:

The target file size.

extend_rss(entry)

Add additional fields to an RSS item.

Parameters:

feed – The RSS item XML element to use.

filename(torrent_filename=None)

Get or set the name of the torrent file.

Parameters:

torrent_filename – The name of the torrent file.

Returns:

The name of the torrent file.

infohash(torrent_infohash=None)

Get or set the hash of the target file.

Parameters:

torrent_infohash – The target file hash.

Returns:

The target hash file.

peers(torrent_peers=None)

Get or set the number od peers

Parameters:

torrent_infohash – The peers number.

Returns:

The peers number.

seeds(torrent_seeds=None)

Get or set the number of seeds.

Parameters:

torrent_seeds – The seeds number.

Returns:

The seeds number.

verified(torrent_verified=None)

Get or set the number of verified peers.

Parameters:

torrent_infohash – The verified peers number.

Returns:

The verified peers number.

class feedgen.ext.torrent.TorrentExtension

FeedGenerator extension for torrent feeds.

extend_ns()

Returns a dict that will be used in the namespace map for the feed.