Support for LAV Filters Megamix (#457)

This commit is contained in:
ImportTaste 2021-08-29 05:18:55 -05:00 committed by GitHub
parent f7faa59246
commit 366a686ab3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 8 deletions

View File

@ -150,17 +150,19 @@ MPC_PATHS = [
r"c:\program files (x86)\media player classic - home cinema\mpc-hc.exe", r"c:\program files (x86)\media player classic - home cinema\mpc-hc.exe",
r"c:\program files (x86)\k-lite codec pack\media player classic\mpc-hc.exe", r"c:\program files (x86)\k-lite codec pack\media player classic\mpc-hc.exe",
r"c:\program files\k-lite codec pack\media Player classic\mpc-hc.exe", r"c:\program files\k-lite codec pack\media Player classic\mpc-hc.exe",
r"C:\program files\k-lite codec pack\mpc-hc64\mpc-hc64.exe", r"c:\program files\k-lite codec pack\mpc-hc64\mpc-hc64.exe",
r"C:\program files (x86)\k-lite codec pack\mpc-hc64\mpc-hc64.exe", r"c:\program files (x86)\k-lite codec pack\mpc-hc64\mpc-hc64.exe",
r"c:\program files (x86)\combined community codec pack\mpc\mpc-hc.exe", r"c:\program files (x86)\combined community codec pack\mpc\mpc-hc.exe",
r"c:\program files\combined community codec pack\mpc\mpc-hc.exe", r"c:\program files\combined community codec pack\mpc\mpc-hc.exe",
r"c:\program files\mpc homecinema (x64)\mpc-hc64.exe", r"c:\program files\mpc homecinema (x64)\mpc-hc64.exe",
r"c:\program files (x86)\lav filters\x86\mpc-hc\shoukaku.exe",
r"c:\program files (x86)\lav filters\x64\mpc-hc\shoukaku.exe"
] ]
MPC_BE_PATHS = [ MPC_BE_PATHS = [
r"c:\Program Files\MPC-BE x64\mpc-be64.exe", r"c:\program files\mpc-be x64\mpc-be64.exe",
r"c:\Program Files\MPC-BE x64\mpc-be.exe", r"c:\program files\mpc-be x64\mpc-be.exe",
r"c:\Program Files\MPC-BE\mpc-be64.exe", r"c:\program files\mpc-be\mpc-be64.exe",
r"c:\Program Files\MPC-BE\mpc-be.exe" r"c:\program files\mpc-be\mpc-be.exe"
] ]
MPLAYER_PATHS = ["mplayer2", "mplayer"] MPLAYER_PATHS = ["mplayer2", "mplayer"]
MPV_PATHS = ["mpv", "/opt/mpv/mpv", r"c:\program files\mpv\mpv.exe", r"c:\program files\mpv-player\mpv.exe", MPV_PATHS = ["mpv", "/opt/mpv/mpv", r"c:\program files\mpv\mpv.exe", r"c:\program files\mpv-player\mpv.exe",

View File

@ -497,7 +497,8 @@ class MPCHCAPIPlayer(BasePlayer):
def getIconPath(path): def getIconPath(path):
if ( if (
MPCHCAPIPlayer.getExpandedPath(path).lower().endswith('mpc-hc64.exe'.lower()) or MPCHCAPIPlayer.getExpandedPath(path).lower().endswith('mpc-hc64.exe'.lower()) or
MPCHCAPIPlayer.getExpandedPath(path).lower().endswith('mpc-hc64_nvo.exe'.lower()) MPCHCAPIPlayer.getExpandedPath(path).lower().endswith('mpc-hc64_nvo.exe'.lower()) or
MPCHCAPIPlayer.getExpandedPath(path).lower().endswith(r'x64\mpc-hc\shoukaku.exe'.lower())
): ):
return constants.MPC64_ICONPATH return constants.MPC64_ICONPATH
else: else:
@ -515,7 +516,7 @@ class MPCHCAPIPlayer(BasePlayer):
if ( if (
path.lower().endswith('mpc-hc.exe'.lower()) or path.lower().endswith('mpc-hcportable.exe'.lower()) or path.lower().endswith('mpc-hc.exe'.lower()) or path.lower().endswith('mpc-hcportable.exe'.lower()) or
path.lower().endswith('mpc-hc64.exe'.lower()) or path.lower().endswith('mpc-hc64_nvo.exe'.lower()) or path.lower().endswith('mpc-hc64.exe'.lower()) or path.lower().endswith('mpc-hc64_nvo.exe'.lower()) or
path.lower().endswith('mpc-hc_nvo.exe'.lower()) path.lower().endswith('mpc-hc_nvo.exe'.lower()) or path.lower().endswith('shoukaku.exe'.lower())
): ):
return path return path
if os.path.isfile(path + "mpc-hc.exe"): if os.path.isfile(path + "mpc-hc.exe"):
@ -548,3 +549,9 @@ class MPCHCAPIPlayer(BasePlayer):
if os.path.isfile(path + "\\mpc-hc64_nvo.exe"): if os.path.isfile(path + "\\mpc-hc64_nvo.exe"):
path += "\\mpc-hc64_nvo.exe" path += "\\mpc-hc64_nvo.exe"
return path return path
if os.path.isfile(path + "shoukaku.exe"):
path += "shoukaku.exe"
return path
if os.path.isfile(path + "\\shoukaku.exe"):
path += "\\shoukaku.exe"
return path