From 0307cda8506935d1ea346ccad4a668bec1e13e97 Mon Sep 17 00:00:00 2001 From: Etoh Date: Tue, 7 Feb 2023 20:22:01 +0000 Subject: [PATCH] Don't detect SMPlayer as mplayer2 (#584) Syncplay does not support SMPlayer, so it shouldn't be detected as mplayer2 or anything else. --- syncplay/players/mplayer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syncplay/players/mplayer.py b/syncplay/players/mplayer.py index a46e77f..9bd1eb8 100755 --- a/syncplay/players/mplayer.py +++ b/syncplay/players/mplayer.py @@ -266,7 +266,7 @@ class MplayerPlayer(BasePlayer): @staticmethod def isValidPlayerPath(path): - if "mplayer" in path and MplayerPlayer.getExpandedPath(path) and "mplayerc.exe" not in path: # "mplayerc.exe" is Media Player Classic (not Home Cinema): + if "mplayer" in path and MplayerPlayer.getExpandedPath(path) and "mplayerc.exe" not in path and "smplayer.exe" not in path: # "mplayerc.exe" is Media Player Classic (not Home Cinema) and smplayer.exe is SMPlayer: return True return False