Kodi DSPlayer – DirectShow Player for Windows
(2018-04-26, 16:08)ausvette Wrote:
(2018-04-25, 16:36)Bibio Wrote:  remove <rule filetypes="mkv" player="dsplayer"> from the code and try that. i put this in as a test... but it was worth trying just in case.
dsplayer is the default player in kodi-ds so should play all files except those in the code playercorefactory code rules.

also remove one of the </rule> at the end

pay close attention to <rule filename=".*3D.*" player="MPC"/> the filename rule must start with a DOT then *3D.*
if you dont add the DOT then kodi will play all finenames with mpc as you are starting with a * (wildcard) which is all your filenames.

your code should now be:

<playercorefactory>
 <players>
<player name="MPC" type="ExternalPlayer" audio="false" video="true">
       <filename>C:\Users\Dave\AppData\Roaming\Kodi\userdata\Play3D.bat</filename>
       <args>"{1}"</args>
       <hidekodi>true</hidekodi>
       <hideconsole>true</hideconsole>
       <forceontop>false</forceontop>
       <playcountminimumtime>1140</playcountminimumtime>
    </player>
    </players>
 <rules action="prepend">
   <rule filetypes="iso" player="MPC">
  <rule filename=".*3D.*" player="MPC"/>
 </rule>
 </rules>
</playercorefactory> 
Thanks so much for your help and persistence with this.

With this, kodi is playing everything with dsplayer except the iso files which are playing with mpc.

Nearly all my 3d movies are iso's so that's great progress.

My 3d mkv files are still playing with dsplayer. My filenames are of the form "movie title 3D.mkv" 

Do I need to rename these to "movie title.3D.mkv" to match the rule?

Thanks!  
no dont add a DOT to your movie filenames. your not trying to match the filenames your making the code match the filenames.

the code ".*3D.*" is saying anything contained after the DOT is a wildcard but must match 3D as well, the .* at the end is saying match any wildcard e.g. mkv/iso/avi but must also include the filename with 3D as the whole quote is wrapped in an expression " ". if you dont add the DOT at the beginning then it will say match any name with or without 3D as a wildcard.

since all your "movie title 3D." are mkv then it will only pick up the .mkv
you could also try removing the last * (wildcard) and specify the extension e.g. ".*3D.mkv" this should force the extension.

try adding another </rule> above or below the one already at the bottom. if that dont work then remove the </rule> that is there and try again.

-----------------------------------------------------------------------
BTW. if you added 3D to all the iso movie filenames then just having <rule filename=".*3D.*" player="MPC"/> is all you would need in the code as it would pick up any filename with 3D and any extension e.g. iso, mkv.
you would then delete <rule filetypes="iso" player="MPC"> from the code.
Reply


Messages In This Thread
Lockup on STOP issue resolved! - by MKANET - 2015-04-11, 21:59
RE: 4G aware patch - by MagikMark - 2015-09-08, 03:27
Alt-F4 no longer quits - by JeffA - 2015-10-31, 20:38
H265 playback - by rew88 - 2017-11-04, 00:41
RE: H265 playback - by ashlar - 2017-11-04, 16:21
RE: H265 playback - by rew88 - 2017-11-05, 01:34
RE: H265 playback - by ashlar - 2017-11-05, 16:48
RE: H265 playback - by rew88 - 2017-11-05, 23:08
RE: H265 playback - by ashlar - 2017-11-06, 12:00
Leia 18 - by terpsarlington - 2017-11-21, 03:51
RE: Leia 18 - by spencerjford - 2017-11-21, 06:24
RE: Kodi DSPlayer – DirectShow Player for Windows - by Bibio - 2018-04-26, 19:33
Display Modes / Refresh Rates - by goofer69 - 2019-09-20, 00:19
RE: Display Modes / Refresh Rates - by ashlar - 2019-09-20, 00:39
RE: Display Modes / Refresh Rates - by ashlar - 2019-09-20, 19:35
DSPlayer 23.810 to 23.976 - by Runakanta - 2018-05-09, 03:24
RE: DSPlayer 23.810 to 23.976 - by Warner306 - 2018-05-10, 01:32
Logout Mark Read Team Forum Stats Members Help
Kodi DSPlayer – DirectShow Player for Windows47