position is float
This commit is contained in:
parent
3a6bfa8946
commit
d263c4c7f0
1 changed files with 1 additions and 1 deletions
|
@ -1135,7 +1135,7 @@ class Item(models.Model):
|
|||
offset = 0
|
||||
streams = self.streams()
|
||||
for stream in streams:
|
||||
if stream.duration + offset < position:
|
||||
if stream.duration + offset < float(position):
|
||||
offset += stream.duration
|
||||
else:
|
||||
if not stream.file.is_video or not stream.file.info.get('video'):
|
||||
|
|
Loading…
Reference in a new issue