baseUrl unused
This commit is contained in:
parent
bc58e659a3
commit
7738ac2779
2 changed files with 2 additions and 6 deletions
|
@ -504,14 +504,9 @@ class Stream(models.Model):
|
|||
self.file.save()
|
||||
|
||||
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 {
|
||||
'duration': self.duration,
|
||||
'aspectRatio': self.aspect_ratio,
|
||||
'baseUrl': base_url
|
||||
}
|
||||
|
||||
def delete_stream(sender, **kwargs):
|
||||
|
|
|
@ -366,7 +366,8 @@ def findUser(request):
|
|||
'''
|
||||
param data {
|
||||
key: "username",
|
||||
value: "foo", operator: "="
|
||||
value: "foo",
|
||||
operator: "=="
|
||||
keys: []
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue