fix torrent download

This commit is contained in:
j 2012-09-08 13:14:28 +02:00
parent d4caad4871
commit 0151b282a2
1 changed files with 1 additions and 1 deletions

View File

@ -957,7 +957,7 @@ def atom_xml(request):
el.attrib['rel'] = 'enclosure'
el.attrib['type'] = 'application/x-bittorrent'
el.attrib['href'] = '%s/torrent/' % page_link
el.attrib['length'] = '%s' % ox.getTorrentSize(item.torrent.path)
el.attrib['length'] = '%s' % ox.get_torrent_size(item.torrent.path)
#FIXME: loop over streams
#for s in item.streams().filter(resolution=max(settings.CONFIG['video']['resolutions'])):
for s in item.streams().filter(source=None):