summaryrefslogtreecommitdiff
path: root/feeds.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2013-01-19 10:55:58 -0600
committerDan McGee <dan@archlinux.org>2013-01-19 10:59:18 -0600
commit8cfaa39a0464f7ee35af76473d3e73ae587a6cb8 (patch)
treef703bf38c84d2c53ec3452484b1d59668cfb3007 /feeds.py
parent23ef118ac129e17d251634d2ef3c88c6d74279e3 (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.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/feeds.py b/feeds.py
index 98e1fb82..c68d3b0e 100644
--- a/feeds.py
+++ b/feeds.py
@@ -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: