merging changes

This commit is contained in:
rlx 2011-08-19 06:40:49 +00:00
commit 52ad295485

View file

@ -529,7 +529,7 @@ class Stream(models.Model):
def json(self): def json(self):
if settings.XSENDFILE or settings.XACCELREDIRECT: if settings.XSENDFILE or settings.XACCELREDIRECT:
base_url = '/%s' % self.file.itemId base_url = '/%s' % self.file.item.itemId
else: else:
base_url = os.path.dirname(self.video.url) base_url = os.path.dirname(self.video.url)
return { return {