forked from 0x2620/pandora
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()
|
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):
|
||||||
|
|
|
@ -366,7 +366,8 @@ def findUser(request):
|
||||||
'''
|
'''
|
||||||
param data {
|
param data {
|
||||||
key: "username",
|
key: "username",
|
||||||
value: "foo", operator: "="
|
value: "foo",
|
||||||
|
operator: "=="
|
||||||
keys: []
|
keys: []
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue