From 0e425c6df193bf51a9034225cfbdcbde3d49b0b9 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Thu, 18 Dec 2014 21:46:18 +0000 Subject: [PATCH] dont create torrent file if torrents are disabled --- pandora/item/models.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pandora/item/models.py b/pandora/item/models.py index 54edcb060..8f7cf37b3 100644 --- a/pandora/item/models.py +++ b/pandora/item/models.py @@ -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