diff --git a/src/presenters/player.py b/src/presenters/player.py index a93cab1..7d6d0fb 100644 --- a/src/presenters/player.py +++ b/src/presenters/player.py @@ -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: + if self.stream != None and (self.stream.is_playing == True or self.stream.is_stayed == 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: + if self.stream != None and self.stream.is_playing == False and self.stream.is_stayed == False: return False else: return True \ No newline at end of file