diff options
author | Dan McGee <dan@archlinux.org> | 2014-01-09 08:40:34 -0600 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2014-01-09 08:41:22 -0600 |
commit | 67a0c0ac088ed2d48fc785f13097557ed6ad25cf (patch) | |
tree | ddb6673b59d585ea47615fbc075c5729b1d0beb2 /feeds.py | |
parent | 0e29ce68fc0aa899a7e02954943642381d9531e5 (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.py | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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' |