use site.url for torrent

This commit is contained in:
j 2012-01-16 13:57:56 +05:30
parent dabbc37252
commit 4601f5ed4e

View file

@ -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,