fixed a typo in last commit

This commit is contained in:
2019-04-23 11:31:49 -05:00
parent eec5350926
commit 0edbba5625
2 changed files with 4 additions and 2 deletions

View File

@@ -63,7 +63,7 @@ class audioPlayer(object):
if "url" in object and object["url"] =="":
pub.sendMessage("notify", message=_("This file could not be played because it is not allowed in your country"))
return
if self.stream != None and (self.stream.is_playing == True or self.stream.is_stayed == True):
if self.stream != None and (self.stream.is_playing == True or self.stream.is_stalled == True):
try:
self.stream.stop()
except BassError:
@@ -196,7 +196,7 @@ class audioPlayer(object):
""" check if the player is already playing a stream. """
if self.stream == None:
return False
if self.stream != None and self.stream.is_playing == False and self.stream.is_stayed == False:
if self.stream != None and self.stream.is_playing == False and self.stream.is_stalled == False:
return False
else:
return True