Last active
July 5, 2016 01:17
-
-
Save shawe/acb9cdedbfb8302eb31d6f90eb70c04b to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
VERSION=`uname -m` | |
if [ "$VERSION" == "x86_64" ] || [ "$VERSION" == "amd64" ]; then | |
wget -c https://popcorntime.sh/download/build/Popcorn-Time-0.3.9-Linux-64.tar.xz -O PopcornTime.tar.xz | |
else | |
wget -c https://popcorntime.sh/download/build/Popcorn-Time-0.3.9-Linux-32.tar.xz -O PopcornTime.tar.xz | |
fi | |
sudo mkdir -p /opt/PopcornTime | |
sudo sh -c 'tar -xpvf PopcornTime.tar.xz -C /opt/PopcornTime' | |
if [ "$VERSION" == "x86_64" ] || [ "$VERSION" == "amd64" ]; then | |
sudo sh -c 'echo "[Desktop Entry] | |
Version=1.0 | |
Type=Application | |
Name=PopcornTime | |
Icon=/opt/PopcornTime/linux64/src/app/images/icon.png | |
Exec="/opt/PopcornTime/linux64/Popcorn-Time" %U | |
Comment=Tiempo para palomitas | |
Categories=AudioVideo;Player;Recorder;Network;FileTransfer;P2P; | |
Terminal=false" > /usr/share/applications/popcorntime.desktop' | |
else | |
sudo sh -c 'echo "[Desktop Entry] | |
Version=1.0 | |
Type=Application | |
Name=PopcornTime | |
Icon=/opt/PopcornTime/linux32/src/app/images/icon.png | |
Exec="/opt/PopcornTime/linux32/Popcorn-Time" %U | |
Comment=Tiempo para palomitas | |
Categories=AudioVideo;Player;Recorder;Network;FileTransfer;P2P; | |
Terminal=false" > /usr/share/applications/popcorntime.desktop' | |
fi | |
xdg-mime default popcorntime.desktop x-scheme-handler/magnet | |
xdg-mime default popcorntime.desktop application/x-bittorrent |
Perdon, quise poner "base" (estoy desde el celular... Jeje)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hola! Como se carga la vase de datos de pelismag? No lo veo en el codigo... Saludos!