baseUrl unused

This commit is contained in:
j 2011-10-22 14:58:21 +02:00
parent bc58e659a3
commit 7738ac2779
2 changed files with 2 additions and 6 deletions

View file

@ -504,14 +504,9 @@ class Stream(models.Model):
self.file.save() self.file.save()
def json(self): def json(self):
if settings.XSENDFILE or settings.XACCELREDIRECT:
base_url = '/%s' % self.file.item.itemId
else:
base_url = os.path.dirname(self.video.url)
return { return {
'duration': self.duration, 'duration': self.duration,
'aspectRatio': self.aspect_ratio, 'aspectRatio': self.aspect_ratio,
'baseUrl': base_url
} }
def delete_stream(sender, **kwargs): def delete_stream(sender, **kwargs):

View file

@ -366,7 +366,8 @@ def findUser(request):
''' '''
param data { param data {
key: "username", key: "username",
value: "foo", operator: "=" value: "foo",
operator: "=="
keys: [] keys: []
} }