Hi There.
I am wondering if it is posisble to link a file to a script that gets executed? I have a script called "prompt_for_media" that ejects the dvd drive tray and a popup comes ont he screen asking to insert a disc then press any key. Once that is done, the disc tray goes back in and then the disc is ready to play. The script works perfectly when I run it from the command line. If I create a symlink to it (using a movir title name), it shows up in XBMC but nothing happens when I click on it.
What I would like to do is add my DVD collection to XBMC but I don't want to rip the movies to disc. Instead, I would like to create a symlink in my "DVDs" directory to this script, then when I click on it, I put the disc in, and then the DVD plays.
-SilkBC
Execute script?
SilkBC
Junior Member Posts: 8 Joined: Feb 2009 Reputation: 0 |
2012-04-08 07:47
Post: #1
|
| find quote |
jhsrennie
Team-XBMC Developer Posts: 7,237 Joined: Nov 2008 Reputation: 117 Location: Chester, UK |
2012-04-08 09:22
Post: #2
http://wiki.xbmc.org/index.php?title=Media_stubs might be an easier way to do this.
To run an external script you'll need to write a short Python script and run it by mapping the RunScript function to some convenient key. JR |
| find quote |
spiff
Grumpy Bastard Developer Joined: Nov 2003 Reputation: 82 |
2012-04-08 10:23
Post: #3
What is wrong with system.exec?
Always read the XBMC online-manual, FAQ and search the forum before posting. Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules. For troubleshooting and bug reporting please make sure you read this first. |
| find quote |
SilkBC
Junior Member Posts: 8 Joined: Feb 2009 Reputation: 0 |
2012-04-08 11:39
Post: #4
(2012-04-08 09:22)jhsrennie Wrote: http://wiki.xbmc.org/index.php?title=Media_stubs might be an easier way to do this. I actually stumbled upon "Media Stubs" shortly after posting and have added a few; it is *exactly* what I am looking for. I mostly left the "<message></message>" tag empty, but used it when I added Season 1 of Heroes ("Insert Season 1, Disc 1", "Insert Season 1, Disc 2", etc.) Thanks to whoever implemented this! :-) -SilkBC |
| find quote |

Search
Help