Don't detect SMPlayer as mplayer2 (#584)

Syncplay does not support SMPlayer, so it shouldn't be detected as mplayer2 or anything else.
This commit is contained in:
Etoh 2023-02-07 20:22:01 +00:00 committed by GitHub
parent 0c8c865def
commit 0307cda850
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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