Skip to content

Commit 582c112

Browse files
committed
Get length from MediaPlayer instance (resolves #29)
1 parent b40efa2 commit 582c112

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

iblrig_custom_tasks/_sp_passiveVideo/task.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def get_media_length(self):
149149
None is returned when no video is loaded.
150150
"""
151151
if self._media:
152-
length = self._media.get_length()
152+
length = self._player.get_length()
153153
if length > -1:
154154
return length / 1e3
155155

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "project_extraction"
7-
version = "0.6rc0"
7+
version = "0.6rc1"
88
description = "Custom extractors for satellite tasks"
99
dynamic = [ "readme" ]
1010
keywords = [ "IBL", "neuro-science" ]

0 commit comments

Comments
 (0)