From 0151b282a25539d08eb3499faa35af10ce6b8eec Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sat, 8 Sep 2012 13:14:28 +0200 Subject: [PATCH] fix torrent download --- pandora/item/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora/item/views.py b/pandora/item/views.py index ca2ce8743..d285f4e10 100644 --- a/pandora/item/views.py +++ b/pandora/item/views.py @@ -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):