From 0edbba56258efc6aa7413a8bb7cdb43d6fe6bc98 Mon Sep 17 00:00:00 2001 From: Manuel Cortez Date: Tue, 23 Apr 2019 11:31:49 -0500 Subject: [PATCH] fixed a typo in last commit --- changelog.md | 2 ++ src/presenters/player.py | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/changelog.md b/changelog.md index 4119518..62c0af7 100644 --- a/changelog.md +++ b/changelog.md @@ -20,6 +20,8 @@ * All spelling dictionaries are included by default for the following languages: Russian, English, German, French, italian, Polish, spanish and Turkish. Before, some dictionaries were missing and the spelling checker was failing. * Fixed an error in the default configuration template used for new sessions in the application. This error was making Socializer to fail when loading any conversation buffer. * Fixed an error in the algorithm to detect friends disconnecting from VK. This problem was interrupting the connection with the chat server every time it was happening, thus chat server's connection should be more reliable now. +* The audio player should behave better in situations where a song is interrupted. Before, if you pressed "next song" while the currently playing sound was interrupted due to internet connection issues, two or more songs were played at the same time. +* The bug reporting feature works normally again. ### Changes diff --git a/src/presenters/player.py b/src/presenters/player.py index 7d6d0fb..6b366a4 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 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 \ No newline at end of file