Idea: Pause download package when video is playing.
|
3rd Mar, 2013, 06:26 AM
Post: #18
|
|||
|
|||
RE: Pause download package when video is playing.
I will try to explain it the best I can!
Here is the folder with all the files needed in it https://www.dropbox.com/sh/jrxem38vzn8aybq/3-Ws7QcygB?m the folder where you store those files should be named service.procmanager and must be storen in: /home/xbian/.xbmc/addons/ Make sure all is set to be executable and that only root can write the files (especially the ones inside Resources). In order for it to work you must start all the processes related to downloads as a group named "download" (you must create it) that's easily done if you modify the start-stop-daemon inside the init scripts of each process. These are the steps involved: You create a new group with: Terminal sudo addgroup --system download Terminal sudo adduser "username" download Then you must edit the init script of each process to run them in this group. Go to the folder /etc/init.d and modify the init scripts (they are almost all named the same as the program, sickbeard, couchpotato...) For example this is my start-stop-daemon line for couchpotato: Code: start-stop-daemon -N 10 -d $APP_PATH -c $RUN_AS:$GROUP --start --background --pidfile $PID_FILE --exec $DAEMON -- $DAEMON_OPTS EDIT:Add also GROUP=download where all the other variables are set (or anywhere on the file) Once you do that, you must allow the files inside resources folder to be executed with privileges without password input. You do that with the visudo command. Terminal sudo visudo Code: xbian ALL=(ALL) NOPASSWD: /usr/bin/python /home/xbian/.xbmc/addons/service.procmanager/resources/startall.py |
|||
« Next Oldest | Next Newest »
|