remove .original from code

This commit is contained in:
cloudwithax 2022-09-03 12:27:35 -04:00
parent ab708a1cfb
commit 216c9d8bf5
1 changed files with 2 additions and 2 deletions

View File

@ -118,7 +118,7 @@ class Player(VoiceProtocol):
@property @property
def position(self) -> float: def position(self) -> float:
"""Property which returns the player's position in a track in milliseconds""" """Property which returns the player's position in a track in milliseconds"""
current = self._current.original current = self._current
if not self.is_playing or not self._current: if not self.is_playing or not self._current:
return 0 return 0
@ -310,7 +310,7 @@ class Player(VoiceProtocol):
async def seek(self, position: float) -> float: async def seek(self, position: float) -> float:
"""Seeks to a position in the currently playing track milliseconds""" """Seeks to a position in the currently playing track milliseconds"""
if position < 0 or position > self._current.original.length: if position < 0 or position > self._current.length:
raise TrackInvalidPosition( raise TrackInvalidPosition(
"Seek position must be between 0 and the track length" "Seek position must be between 0 and the track length"
) )