Add support for K-Lite version of MPC-HC
This commit is contained in:
parent
4674cadca3
commit
b568652824
@ -479,7 +479,7 @@ class MPCHCAPIPlayer(BasePlayer):
|
|||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def getIconPath(path):
|
def getIconPath(path):
|
||||||
if MPCHCAPIPlayer.getExpandedPath(path).lower().endswith(u'mpc-hc64.exe'.lower()):
|
if MPCHCAPIPlayer.getExpandedPath(path).lower().endswith(u'mpc-hc64.exe'.lower()) or MPCHCAPIPlayer.getExpandedPath(path).lower().endswith(u'mpc-hc64_nvo.exe'.lower()):
|
||||||
return constants.MPC64_ICONPATH
|
return constants.MPC64_ICONPATH
|
||||||
else:
|
else:
|
||||||
return constants.MPC_ICONPATH
|
return constants.MPC_ICONPATH
|
||||||
@ -493,7 +493,7 @@ class MPCHCAPIPlayer(BasePlayer):
|
|||||||
@staticmethod
|
@staticmethod
|
||||||
def getExpandedPath(path):
|
def getExpandedPath(path):
|
||||||
if os.path.isfile(path):
|
if os.path.isfile(path):
|
||||||
if path.lower().endswith(u'mpc-hc.exe'.lower()) or path.lower().endswith(u'mpc-hc64.exe'.lower()):
|
if path.lower().endswith(u'mpc-hc.exe'.lower()) or path.lower().endswith(u'mpc-hc64.exe'.lower()) or path.lower().endswith(u'mpc-hc64_nvo.exe'.lower()) or path.lower().endswith(u'mpc-hc_nvo.exe'.lower()):
|
||||||
return path
|
return path
|
||||||
if os.path.isfile(path + u"mpc-hc.exe"):
|
if os.path.isfile(path + u"mpc-hc.exe"):
|
||||||
path += u"mpc-hc.exe"
|
path += u"mpc-hc.exe"
|
||||||
@ -501,9 +501,22 @@ class MPCHCAPIPlayer(BasePlayer):
|
|||||||
if os.path.isfile(path + u"\\mpc-hc.exe"):
|
if os.path.isfile(path + u"\\mpc-hc.exe"):
|
||||||
path += u"\\mpc-hc.exe"
|
path += u"\\mpc-hc.exe"
|
||||||
return path
|
return path
|
||||||
|
if os.path.isfile(path + u"mpc-hc_nvo.exe"):
|
||||||
|
path += u"mpc-hc_nvo.exe"
|
||||||
|
return path
|
||||||
|
if os.path.isfile(path + u"\\mpc-hc_nvo.exe"):
|
||||||
|
path += u"\\mpc-hc_nvo.exe"
|
||||||
|
return path
|
||||||
if os.path.isfile(path + u"mpc-hc64.exe"):
|
if os.path.isfile(path + u"mpc-hc64.exe"):
|
||||||
path += u"mpc-hc64.exe"
|
path += u"mpc-hc64.exe"
|
||||||
return path
|
return path
|
||||||
if os.path.isfile(path + u"\\mpc-hc64.exe"):
|
if os.path.isfile(path + u"\\mpc-hc64.exe"):
|
||||||
path += u"\\mpc-hc64.exe"
|
path += u"\\mpc-hc64.exe"
|
||||||
return path
|
return path
|
||||||
|
if os.path.isfile(path + u"mpc-hc64_nvo.exe"):
|
||||||
|
path += u"mpc-hc64_nvo.exe"
|
||||||
|
return path
|
||||||
|
if os.path.isfile(path + u"\\mpc-hc64_nvo.exe"):
|
||||||
|
path += u"\\mpc-hc64_nvo.exe"
|
||||||
|
return path
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user