Skip to content

Tiny webapp built on top of redis, celery, youtube-dl and flask that, provided a youtube|vimeo|soundcloud|blip.tv link, will download the media file and optionally convert the output to other format.

hernantz/gorkon

Repository files navigation

GORKON

Gorkon

Tiny webapp built on top of redis, celery, youtube-dl and flask that, provided a youtube|vimeo|soundcloud|blip.tv link, will download the media file and optionally convert the output to other format.

TODO

  • TESTS!!!1.
  • Automated deployment.
  • Use FlexBox for fun.
  • Allow to queue multiple simultaneous downloads.
  • Use celery chains. Did not work when tried.
  • Profit?

INSTALL

For deploying and developing there are some fabric commands available. For required users check fabhosts.py file. All enviroment users must exist and all system packages must be installed.

Installing required system wide packages

  • sudo apt-get update
  • sudo apt-get install nginx python-pip gcc python-dev git virtualenvwrapper supervisor redis-server libav-tools
  • sudo apt-get install libavutil-extra-51 libavdevice-extra-53 libavformat-extra-53 libavfilter-extra-2

Configuring fabric hosts The fabhosts.py file must contain the localhost, staging and production tasks to set up their respective hosts enviroments. Examples of the env vars required are:

@task
def localhost():
    env.hosts = ['localhost'],
    env.user = 'hernantz',
    env.folder = 'devel',
    env.project_name = 'gorkon'
    env.repo = 'https://github.com/hernantz/gorkon'
    env.project_path = '/home/%(user)s/%(folder)s/' % env
    env.src_path = '%(project_path)s%(project_name)s' % env
    env.static = '%(src_path)s/static' % env
    env.log_dir = '%(src_path)s/logs/' % env
    env.virtualenv_dir = '/home/%(user)s/.virtualenvs/%(project_name)s' % env

Make sure that nginx and supervisor services are running with sudo service [program] status Also check that the folders specified in fabhosts.py exist

About

Tiny webapp built on top of redis, celery, youtube-dl and flask that, provided a youtube|vimeo|soundcloud|blip.tv link, will download the media file and optionally convert the output to other format.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published