I have upgraded to ubuntu 14.04 with udevil, xbmc 13beta + makemkv and while bd discs mount automatically to /media/DISC_ID with udevil, the "play disc" option is not working
It seems as the xbmc function PlayDVD does not work with bd's, although HasMediaDVD detects that there is a disc inserted. Ive tried something different this time - editing skin files to launch a custom script instead of PlayDVD and "play disc" is working well, and hopefully it will stay that way now. Two scripts are needed, as SystemExec caused probems - both need to be made executable and some changes will need to be made to suit your system.
xbmc-play-disc.py
Code:
import os
os.system('/home/xbmc/.scripts/xbmc-play-disc.sh &')
xbmc-play-disc.sh
Code:
#!/bin/bash
#script to play dvd/cd/bluray with xbmc
udevil mount -o ro,noatime /dev/sr0
BD_DISC=$(ls /media/*/BDMV/index.bdmv 2> /dev/null)
if [[ "$BD_DISC" ]]; then
xbmc-send --host=192.168.1.32 --port=9777 --action="PlayMedia("$BD_DISC")"
else
xbmc-send --host=192.168.1.32 --port=9777 --action="PlayDVD"
fi
A skin file needs to be editied and the following is for aeon nox 5, but should be similar for different skins.
~/.xbmc/addons/skin.aeon.nox.5/1080i/Home.xml
Replace:
Code:
<onclick>PlayDVD</onclick>
with:
Code:
<onclick>RunScript(/home/xbmc/.scripts/xbmc-play-disc.py)</onclick>
The following sed command automatically does the above:
Code:
sed -i 's$<onclick>PlayDVD</onclick>$<onclick>RunScript(/home/xbmc/.scripts/xbmc-play-disc.py)</onclick>$g' ~/.xbmc/addons/skin.aeon.nox.5/1080i/Home.xml
Ive tested with cd, dvd + bd and all three start via play disc.
On a side note using
makemkv + libaacs/libbdplus has worked great for every bd I have used with it.
A
debug log of no bd being played via PlayDVD, for completeness sake.