From 827ab0a1ef93c54e15361117f2de3327d67c2598 Mon Sep 17 00:00:00 2001 From: cloudwithax Date: Thu, 6 Oct 2022 19:31:15 -0400 Subject: [PATCH] Revert "remove .original from code" This reverts commit 216c9d8bf567931b7d94eac8985878f704f9121e. --- pomice/player.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pomice/player.py b/pomice/player.py index d5c7ad7..8006885 100644 --- a/pomice/player.py +++ b/pomice/player.py @@ -118,7 +118,7 @@ class Player(VoiceProtocol): @property def position(self) -> float: """Property which returns the player's position in a track in milliseconds""" - current = self._current + current = self._current.original if not self.is_playing or not self._current: return 0 @@ -310,7 +310,7 @@ class Player(VoiceProtocol): async def seek(self, position: float) -> float: """Seeks to a position in the currently playing track milliseconds""" - if position < 0 or position > self._current.length: + if position < 0 or position > self._current.original.length: raise TrackInvalidPosition( "Seek position must be between 0 and the track length" )