diff options
author | Dan McGee <dan@archlinux.org> | 2013-01-19 10:55:58 -0600 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2013-01-19 10:59:18 -0600 |
commit | 8cfaa39a0464f7ee35af76473d3e73ae587a6cb8 (patch) | |
tree | f703bf38c84d2c53ec3452484b1d59668cfb3007 /feeds.py | |
parent | 23ef118ac129e17d251634d2ef3c88c6d74279e3 (diff) |
Add more metadata to releng Release model
Add a file_size field which we will use in the RSS feed, and also add a
field for future storage of the torrent data itself.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'feeds.py')
-rw-r--r-- | feeds.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -192,7 +192,9 @@ class ReleaseFeed(Feed): proto = 'https' return "%s://%s/%s.torrent" % (proto, domain, item.iso_url()) + def item_enclosure_length(self, item): + return item.file_size or "" + item_enclosure_mime_type = 'application/x-bittorrent' - item_enclosure_length = 0 # vim: set ts=4 sw=4 et: |