Skip to content

Commit

Permalink
Raise NotImplemented Error in is_playing
Browse files Browse the repository at this point in the history
  • Loading branch information
EvieePy authored Jun 14, 2019
1 parent 95f35a6 commit a54eeaa
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions wavelink/player.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,17 +116,7 @@ def is_connected(self):

@property
def is_playing(self):
""" Returns the player's track state. """
if not self.is_connected:
return False

if not self.last_position:
return False

if self.last_position > 0 and self.last_position < self.current.duration:
return True

return False
raise NotImplementedError

@property
def position(self):
Expand Down

0 comments on commit a54eeaa

Please sign in to comment.