dont overwrite local variable
This commit is contained in:
parent
5df00a3c91
commit
7012b8724a
1 changed files with 1 additions and 1 deletions
|
@ -832,7 +832,7 @@ class Item(models.Model):
|
||||||
videos = self.files.filter(selected=True).filter(Q(is_video=True)|Q(is_audio=True))
|
videos = self.files.filter(selected=True).filter(Q(is_video=True)|Q(is_audio=True))
|
||||||
if videos.count() > 0:
|
if videos.count() > 0:
|
||||||
#s.duration = sum([v.duration for v in videos])
|
#s.duration = sum([v.duration for v in videos])
|
||||||
s.duration = sum([s.duration for s in self.streams()])
|
s.duration = sum([v.duration for v in self.streams()])
|
||||||
v = videos[0]
|
v = videos[0]
|
||||||
if v.is_audio:
|
if v.is_audio:
|
||||||
s.resolution = None
|
s.resolution = None
|
||||||
|
|
Loading…
Reference in a new issue