forked from 0x2620/pandora
Stream.__unicode__
This commit is contained in:
parent
9a47b5eef4
commit
fb6ef55424
1 changed files with 3 additions and 0 deletions
|
@ -891,6 +891,9 @@ class Stream(models.Model):
|
||||||
self.available=True
|
self.available=True
|
||||||
self.save()
|
self.save()
|
||||||
|
|
||||||
|
def __unicode__(self):
|
||||||
|
return u"%s (%s)" % (self.profile, self.movie)
|
||||||
|
|
||||||
def save(self, *args, **kwargs):
|
def save(self, *args, **kwargs):
|
||||||
if self.video and not self.info:
|
if self.video and not self.info:
|
||||||
self.info = ox.avinfo(self.video.path)
|
self.info = ox.avinfo(self.video.path)
|
||||||
|
|
Loading…
Reference in a new issue