Pycorn-time

A CLI-Version of popcorntime, programmed in python.

Download as .zip Download as .tar.gz View on GitHub

PyCorn Time

PyCorn Time is a clone of the popular project Popcorntime, but it is implemented in Python and doesn't have a graphical user interface but a command line interface.

Pre-Requisites

In order to work correctly PyCorn needs a few things already installed:

To install them, you can run the following commands:

$ # Mplayer
$ pacman -S mplayer # For archlinux
$ apt-get install mplayer # For debian/ubuntu/mint
$ yum install mplayer # For fedora/redhat
$ # Peerflix
$ pacaur -S peerflix # Or use another aur-helper on archlinux
$ npm install -g peerflix # For all others
$ # BeautifulSoup
$ pip install beautifulsoup4

Installing

To install PyCorn Time simply clone the github repository and run the setup.py file:

$ git clone https://github.com/sacovo/pycorn-time.git
$ cd pycorn-time
$ python setup.py install # This might require root

After installing you can run the program: ´´´ $ pycorntime ´´´

Configuration

To configure the behavior of the program you can use the file ´~/.pycorn.conf´. After the first a default file will be written:

# This is the config file for pycorntime
# To change a value uncomment the line and make your changes

# Commands

#player_command = /usr/bin/env peerflix "%s" --mplayer
#imdb_command = /bin/xdg-open %s
#download_command = /usr/bin/env aria2c -d {location} "{torrent_link}"

# Uncomment this to disable the welcome message
#show_welcome = false

# YTS-Api values, more information: https://yts.re/api#listDocs

#limit = 20     # 1 - 50 (inclusive)
#quality = all  # 720p, 1080p, 3D, All
#rating = 0     # 0 - 9 (inclusive)
#sort = date    # date, seeds, peers, size, alphabet, rating, downloaded, year
#order = desc   # desc, asc

Screenshots