Hide mplayer UnicodeWarning + upver to 45

This commit is contained in:
Etoh 2017-11-13 18:23:37 +00:00 committed by alby128
parent b52461c00a
commit 7acae94a96
2 changed files with 7 additions and 2 deletions

View File

@ -1,4 +1,4 @@
version = '1.5.0'
milestone = 'Yoitsu'
release_number = '44'
release_number = '45'
projectURL = 'http://syncplay.pl/'

View File

@ -360,7 +360,12 @@ class MplayerPlayer(BasePlayer):
for itemID, deletionCandidate in enumerate(self.sendQueue):
if deletionCandidate.startswith(command):
self.__playerController._client.ui.showDebugMessage(u"<mpv> Remove duplicate (supersede): {}".format(self.sendQueue[itemID]))
self.sendQueue.remove(self.sendQueue[itemID])
try:
self.sendQueue.remove(self.sendQueue[itemID])
except UnicodeWarning:
self.__playerController._client.ui.showDebugMessage(u"<mpv> Unicode mismatch occured when trying to remove duplicate")
# TODO: Prevent this from being triggered
pass
break
break
if constants.MPV_REMOVE_BOTH_IF_DUPLICATE_COMMANDS: