summaryrefslogtreecommitdiff
path: root/feeds.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2014-01-09 08:40:34 -0600
committerDan McGee <dan@archlinux.org>2014-01-09 08:41:22 -0600
commit67a0c0ac088ed2d48fc785f13097557ed6ad25cf (patch)
treeddb6673b59d585ea47615fbc075c5729b1d0beb2 /feeds.py
parent0e29ce68fc0aa899a7e02954943642381d9531e5 (diff)
Remove remaining references to release file_size field
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'feeds.py')
-rw-r--r--feeds.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/feeds.py b/feeds.py
index 678bebcf..ecdb7d9a 100644
--- a/feeds.py
+++ b/feeds.py
@@ -194,7 +194,10 @@ class ReleaseFeed(Feed):
return "%s://%s/%s.torrent" % (proto, domain, item.iso_url())
def item_enclosure_length(self, item):
- return item.file_size or ""
+ if item.torrent_data:
+ torrent = item.torrent()
+ return torrent['file_length'] or ""
+ return ""
item_enclosure_mime_type = 'application/x-bittorrent'