new ox.torrent api

This commit is contained in:
j 2012-08-21 10:49:20 +02:00
parent 4be0904840
commit faf9865f87

View file

@ -1013,7 +1013,7 @@ class Item(models.Model):
piece_size_pow2 = 16 #2 mbps -> 64KB pieces piece_size_pow2 = 16 #2 mbps -> 64KB pieces
meta['piece_size_pow2'] = piece_size_pow2 meta['piece_size_pow2'] = piece_size_pow2
ox.torrent.createTorrent(video, settings.TRACKER_URL, meta) ox.torrent.create_torrent(video, settings.TRACKER_URL, meta)
self.torrent.name = torrent[len(settings.MEDIA_ROOT)+1:] self.torrent.name = torrent[len(settings.MEDIA_ROOT)+1:]
self.save() self.save()