Thread Rating:
  • 0 Vote(s) - 0 Average
Linux - Help to start writing a simple script.
#1
I want to create a simple script/addon and need a little help to start.
When listing movies/series episode I want to be able to press a hotkey and handle the files associated the the movie/series episode with a script.

May any of you show me an example where I may begin?

//Christoffer
Reply
#2
Are you talking about a python addon or a Linux bash script or a python script to be ran outside xbmc?
Reply
#3
It could be either Python or Bash, i Mastered them both Smile
The script should handle the movie that's highligted in XBMC, and it will run for examle cp to copy movie from source to destination.
Reply
#4
You probably want to do this one in python as a service addon. I don't think you can get the currently selected item in xbmc from bash. What I'm not sure about is capturing key input for the hotkey part.

Once you've got that part, you can call the JSONRPC from within python to get the info about the selected item and do as you wish with it.
Reply



Logout Mark Read Team Forum Stats Members Help
Help to start writing a simple script.00