forked from 0x2620/pandora
dont create torrent file if torrents are disabled
This commit is contained in:
parent
74772171c2
commit
0e425c6df1
1 changed files with 2 additions and 0 deletions
|
@ -1199,6 +1199,8 @@ class Item(models.Model):
|
|||
return ox.torrent.bencode(data)
|
||||
|
||||
def make_torrent(self):
|
||||
if settings.CONFIG['video'].get('torrent') == False:
|
||||
return
|
||||
streams = self.streams()
|
||||
if streams.count() == 0:
|
||||
return
|
||||
|
|
Loading…
Reference in a new issue