From d263c4c7f0972a42e5920cd7445e1bb760590a21 Mon Sep 17 00:00:00 2001 From: j Date: Sat, 11 Mar 2017 20:56:37 +0200 Subject: [PATCH] position is float --- pandora/item/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora/item/models.py b/pandora/item/models.py index 49ad5957d..b38fb7dce 100644 --- a/pandora/item/models.py +++ b/pandora/item/models.py @@ -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'):