2009-03-27, 11:58
Yes it works. Thanks for the link.
Download skin:
In Home.xml find "My TV Shows Button" and add:
In /usr/local/share/xbmc/skin/MediaStream/language/English add 2 lines at the end:
script "XBMC-VDR" for vdr-xine (0.9.1)
XBMC - the first, VDR - the second place:
Similarly, VDR - first and XBMC - second.
VDR file commands.conf where we need to add:
where exit.sh:
passwordless sudoers
Seems this is the simplest method.
Download skin:
Code:
svn co https://xboxmediacenter.svn.sourceforge.net/svnroot/xboxmediacenter/MediaStream
Code:
<------------------
<item id="11">
<description>My VDR Button</description>
<label> $LOCALIZE[31905] </label>
<label2> $LOCALIZE[31906] </label2>
<visible>.HasSetting(HideTVShows)</visible>
<onclick>XBMC.Quit()</onclick>
</item>
------------------>
Code:
<------------------------------
<string id="31905">TV</string>
<string id="31906">Watch</string>
</strings>
XBMC - the first, VDR - the second place:
Code:
#!/bin/bash
vdr -c /PATH/vdr -v /PATH/video --localedir=/PATH/vdr/locale --lib=/PATH/vdr/plugins/lib -P'sc' -P'xine -r' -P'reelchannelscan' -P'rotor' -P'chanman' -P'chanorg' -P'cpumon' -P'femon' -P'mplayer -M /PATH/vdr/plugins/mplayer.sh' -P'mp3' -P'fepg' -P'filebrowser' -P'hdmonitor' -P'osdteletext' -P'prefermenu' -P'sleeptimer' -P'netconfig' -P'skinreel' -P'skinenigmang -f /PATH/vdr/plugins/skinenigmang/fonts -l /PATH/vdr/plugins/skinenigmang/hqlogos' -P'manual' -P'aide' -P'ripit' -P'systeminfo' -P'devstatus' -P'webvideo' -P'iptv' -P'sked' -P'radio -f /PATH/vdr/plugins/radio' -P'games' &
while [ 1 -eq 1 ];
do
xbmc -fs
xine -f --post vdr_video --post vdr_audio --post upmix_mono "vdr:/tmp/vdr-xine/stream#demux:mpeg_pes"
done
Code:
<--------------------------
while [ 1 -eq 1 ];
do
xine -f --post vdr_video --post vdr_audio --post upmix_mono "vdr:/tmp/vdr-xine/stream#demux:mpeg_pes"
xbmc -fs
done
Code:
1 Close VDR: /usr/local/bin/exit.sh
2 Reboot HTPC?: sudo reboot
3 Shut down HTPC?: sudo halt
4 Start XBMC: pkill -9 xine
...........................................>
Code:
pkill -9 XBMC-VDR
pkill -9 xbmc
pkill -9 xine
pkill -9 vdr
Code:
# /etc/sudoers
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the man page for details on how to write a sudoers file.
#
Defaults env_reset
# Uncomment to allow members of group sudo to not need a password
#%sudo ALL=NOPASSWD: ALL
# Host alias specification
# User alias specification
# Cmnd alias specification
# User privilege specification
root ALL=(ALL) ALL
# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL
%Put-your-User-Name ALL=NOPASSWD: ALL