Created
April 10, 2016 16:21
-
-
Save abakum/f45006952e99dac9600589e80e9df8f0 to your computer and use it in GitHub Desktop.
Use peerflix for kodi@OSMC on raspberry Pi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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