tomlea / media-fetcher

A simple go service to fetch media files, and put them on a hard disk.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Media Fetcher

A simple service that monitors a Redis queue, for files to download, and downloads them.

Usage

$ docker pull redis
$ docker pull cwninja/media-fetcher

$ docker run -d --name redis redis
$ docker run -d --name media-fetcher --link redis:redis -v ~/Downloads/:/downloads/ cwninja/media-fetcher

Then push a JSON object like the following onto the redis download-queue list:

$ docker run --rm -it --link redis:r redis redis-cli -h r
r:6379> rpush download-queue '{"url":"http://example.com","filename":"example.com.html"}'

The media fetcher will pull down the file, and store it in ~/Downloads/example.com.html

About

A simple go service to fetch media files, and put them on a hard disk.

License:MIT License


Languages

Language:Go 100.0%