From 4601f5ed4eb7cde9242b9564cdde8a4b235e9810 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Mon, 16 Jan 2012 13:57:56 +0530 Subject: [PATCH] use site.url for torrent --- pandora/item/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora/item/models.py b/pandora/item/models.py index 2ad5eda6..815135ef 100644 --- a/pandora/item/models.py +++ b/pandora/item/models.py @@ -936,7 +936,7 @@ class Item(models.Model): video = base torrent = '%s.torrent' % base - url = "http://%s%s" % (Site.objects.get_current().domain, url) + url = "http://%s%s" % (settings.CONFIG['site']['url'], url) meta = { 'target': torrent, 'url-list': url,