forked from 0x2620/pandora
fix torrent path, set rendered to false if uploading again
This commit is contained in:
parent
98ecd817ba
commit
7f96b34e54
3 changed files with 4 additions and 2 deletions
|
|
@ -1009,7 +1009,7 @@ class Item(models.Model):
|
|||
meta['piece_size_pow2'] = piece_size_pow2
|
||||
|
||||
ox.torrent.createTorrent(video, settings.TRACKER_URL, meta)
|
||||
self.torrent.name = self.path('torrent/%s.torrent' % self.get('title'))
|
||||
self.torrent.name = torrent[len(settings.MEDIA_ROOT)+1:]
|
||||
self.save()
|
||||
|
||||
def streams(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue