Difference between revisions of "PyLoad"

From ArchWiki
Jump to: navigation, search
(Daemon)
m (some style improvements)
Line 1: Line 1:
 
{{Lowercase title}}
 
{{Lowercase title}}
 
[[Category:Internet Applications (English)]]
 
[[Category:Internet Applications (English)]]
 +
{{i18n|PyLoad}}
 +
 
[http://pyload.org/ pyLoad] is a fast, lightweight and full featured download manager for many One-Click-Hoster, container formats like DLC, video sites or just plain http/ftp links ([http://pyload.org/hoster supported hosts]). It aims for low hardware requirements and platform independence to be runnable on all kind of systems (desktop pc, netbook, NAS, router). Despite its strict restriction it is packed full of features just like webinterface, captcha recognition, unrar and much more.  
 
[http://pyload.org/ pyLoad] is a fast, lightweight and full featured download manager for many One-Click-Hoster, container formats like DLC, video sites or just plain http/ftp links ([http://pyload.org/hoster supported hosts]). It aims for low hardware requirements and platform independence to be runnable on all kind of systems (desktop pc, netbook, NAS, router). Despite its strict restriction it is packed full of features just like webinterface, captcha recognition, unrar and much more.  
  
Line 11: Line 13:
 
==Installation==
 
==Installation==
  
Install the [http://aur.archlinux.org/packages.php?ID=34434 pyload] package from the AUR.
+
Install the {{AUR|pyload}} package from the [[AUR]].
  
 
===Requirements===
 
===Requirements===

Revision as of 13:49, 22 January 2012

This template has only maintenance purposes. For linking to local translations please use interlanguage links, see Help:i18n#Interlanguage links.


Local languages: Català – Dansk – English – Español – Esperanto – Hrvatski – Indonesia – Italiano – Lietuviškai – Magyar – Nederlands – Norsk Bokmål – Polski – Português – Slovenský – Česky – Ελληνικά – Български – Русский – Српски – Українська – עברית – العربية – ไทย – 日本語 – 正體中文 – 简体中文 – 한국어


External languages (all articles in these languages should be moved to the external wiki): Deutsch – Français – Română – Suomi – Svenska – Tiếng Việt – Türkçe – فارسی

pyLoad is a fast, lightweight and full featured download manager for many One-Click-Hoster, container formats like DLC, video sites or just plain http/ftp links (supported hosts). It aims for low hardware requirements and platform independence to be runnable on all kind of systems (desktop pc, netbook, NAS, router). Despite its strict restriction it is packed full of features just like webinterface, captcha recognition, unrar and much more.

pyLoad is divided into core and clients, to make it easily remote accessible. Currently there are (screenshots):

  • a webinterface;
  • a command line interface;
  • a GUI written in Qt;
  • and an Android client.

Installation

Install the pyloadAUR package from the AUR.

Requirements

Required dependencies are handled by the AUR package's PKGBUILD. Nevertheless, some optional dependencies aren't:

  • Ability to establish a secure connection to core or webinterface.
# pacman -S openssl python2-pyopenssl
  • For ClickNLoad support.
# pacman -S js

Configuration

Run Setup Assistant:

# pyLoadCore -s

The Setup Assistant gives you a jump start, by providing a basic but working setup. Being a basic setup, there are more options and you should at least look at them, since some sections are untouched by the Assistant, like the permissions section.

Tip: Most (if not all) of the options can be changed with Template:Codeline or with the the Web Interface.

Optional

However, if you prefer to edit the pyload.conf yourself and you went with the default conf directory, you can change the settings by editing {{Filename|~/.pyload/pyload.conf}. Use your favorite editor to edit, ie:

# nano ~/.pyload/pyload.conf

You can get aquainted with most of the configuration options in this page. Do note that it is outdated, in a sense, since the Template:Filename files it refers to do not match what's still on that page.

While also editable with the web interface, you can also change the plugins configuration by editing Template:Filename. Use your favorite editor to edit, ie:

# nano ~/.pyload/plugins.conf

Extraction passwords are store in ~/.pyload/unrar_passwords.txt. To add passwords either edit the file or:

# echo '<password>' >> ~/.pyload/unrar_passwords.txt

You can get aquainted with most of the configuration options in this page. Do note that it is outdated, in a sense, since the /opt/pyload/module/config/ files it refers to do not match what's still on that page.

Scripts

For more info on this,

cat /opt/pyload/scripts/Readme.txt

and visit pyload.org forums.

If you are interested in running userscripts, before running, you need to either

# chmod 777 /opt/pyload/scripts/

or

# chown <user you defined in pyload.conf / permissions settings> /opt/pyload/scripts/

in order for pyLoadCore to create the necessary folders.

Running

Essential

# pyLoadCore 
Tip: You may want to add Template:Codeline to your Template:Filename

Interfacing with pyLoadCore

# pyLoadCli
# pyLoadGui

Or, as stated above, with the web interface. If the default settings are true, then:

http://localhost:8000

Daemon

To start pyload as a daemon we have to create it first:

su
touch /etc/rc.d/pyload
chmod +x /etc/rc.d/pyload

Now edit the content with:

nano /etc/rc.d/pyload

TIP: Don't forget to change Template:Codeline and Template:Codeline and/or uncommenting lines after Template:Codeline if required.

#!/bin/bash

. /etc/rc.conf
. /etc/rc.d/functions

USER=YOUR_USER
PIDFILE=/PATH/TO/.pyload/pyload.pid

case "$1" in
  start)
    stat_busy "Starting pyload"
    su $USER -c '/usr/bin/pyLoadCore --daemon' &> /dev/null
    # after pyload update restart itself
    # sleep 30                                                                    # waiting time for pyload updates
    # su $USER -c "kill -15 $(cat $PIDFILE) && rm -f $PIDFILE" &> /dev/null       # kill pyload
    # su $USER -c '/usr/bin/pyLoadCore --daemon' &> /dev/null                     # restart pyload
    if [ $? -gt 0 ]; then
      stat_fail
    else
      add_daemon pyLoadCored
      stat_done
    fi
    ;;
  stop)
    stat_busy "Stopping pyload"
    # killall -w -s 2 /usr/bin/pyLoadCore &> /dev/null
    su $USER -c "kill -15 $(cat $PIDFILE) && rm -f $PIDFILE" &> /dev/null
    if [ $? -gt 0 ]; then
      stat_fail
    else
      rm_daemon pyLoadCored
      stat_done
    fi
    ;;
  restart)
    $0 stop
    sleep 3
    $0 start
    ;;
  *)
    echo "usage: $0 {start|stop|restart}"
esac
exit 0

Finally start pyload with:

rc.d start pyload

To start Template:Codeline automatically add it to the daemon array in Template:Filename.

Alternatives

JDownloader available in AUR.

Tucan Manager available in community.

plowshare available in AUR (CLI).

uGet available in AUR (GTK).

TuxLoad available in AUR (CLI).