|
Télécharger sur megaupload, rapidshare, fileserve, hotfile, uploaded.to..., ce logiciel va vous permettre d'automatiser vos téléchargements directement sur votre NAS synology grace à son interface web. pyLoad gère les captcha des différents sites, ainsi que les comptes Premium.
pyload est un peu l'équivalent de jDownloader mais il n'a pas besoin de serveur X pour fonctionner. Si quelqu'un connait une technique pour installer un serveur X sur un NAS Synology, je suis preneur.
Installation
ipkg install python ipkg install py25-crypto ipkg install py25-curl ipkg install libcurl ipkg install py25-openssl ipkg install py25-django ipkg install py25-pil ipkg install tesseract-ocr ipkg install tesseract-ocr-lang-eng ipkg install ossp-js ipkg install unrar ipkg install unzip
cd /opt/share wget http://get.pyload.org/get/src/ unzip pyload-src-v0.4.5.zip rm pyload-src-v0.4.5.zip cd pyload/
Configuration du programme
python2.5/opt/share/pyload/pyLoadCore.py
A la première execution, le programme lance un assistant de configuration (création d'un utilisateur, répertoire de destination, port de l'interface web...). Une vérification est faite concernant les librairies requises. Une seule doit être manquante : PyQt4
Lancer le programme
Ensuite, vous pouvez lancer le programme en tache de fond et vous connecter via un navigateur sur le NAS ( http://ipNas:8000/)
python2.5 /opt/share/pyload/pyLoadCore.py --daemon
Lancer automatiquement au démarrage
Il faut créer le script S99pyload dans /opt/etc/init.d/ et le rendre exécutable (chmod 755 S99pyload):
#!/bin/sh # Startup script PIDFILE=/opt/share/pyload/.pyload/pyload.pid
stop(){ if [ -f $PIDFILE ] then pid=`cat $PIDFILE` kill -9 $pid >/dev/null 2>&1 ret=$? rm -f $PIDFILE if test $ret -eq 0 then echo "PyLoad successfully stopped" else echo "Error when stopping server" exit 1 fi else echo "Pyload is not started or already stopped" fi exit 0 }
start(){ if [ ! -f $PIDFILE ] then python2.5 /opt/share/pyload/pyLoadCore.py --daemon echo "PyLoad successfully started" else echo "PyLoad already started" fi exit 0 }
status(){ if [ -f $PIDFILE ] then echo "PyLoad is started" else echo "PyLoad is not started" fi }
command="$1" case "$command" in start) start exit 0 ;; stop) stop exit 0 ;; restart) stop sleep 1 start exit 0 ;; status) status ;; *) echo "Usage: $SCRIPTNAME {start | stop | status | restart}" >&2 status exit 3 ;; esac exit 0 : # [EOF]
NB : Le chemin /opt/share/pyload/.pyload/pyload.pid défini au début du script est à adapter selon l'emplacement de votre répertoire .pyload
Testé sur le NAS synology DS 411+
|