Skip to content

Instantly share code, notes, and snippets.

@abakum
Created April 10, 2016 16:21
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save abakum/f45006952e99dac9600589e80e9df8f0 to your computer and use it in GitHub Desktop.
Save abakum/f45006952e99dac9600589e80e9df8f0 to your computer and use it in GitHub Desktop.
Use peerflix for kodi@OSMC on raspberry Pi
#!/bin/bash
mkdir -p ~/ins
cd ~/ins
wget http://node-arm.herokuapp.com/node_latest_armhf.deb
sudo dpkg -i node_latest_armhf.deb
sudo npm install -g peerflix
#!/bin/bash
echo 'http://127.0.0.1:8888' > /tmp/peerflix.strm
echo 'xbmc-send --host=127.0.0.1 --port=9777 --action="PlayMedia(/tmp/peerflix.strm)"' > /tmp/on-listening
chmod +x /tmp/on-listening
read -e -p "Enter magnet>" magnet
[ -n "$magnet" ] && peerflix "$magnet" -q -f ~/Downloads --on-listening /tmp/on-listening &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment