Compare commits

...

2 Commits

Author SHA1 Message Date
lance allen cc28fafdac adding dockerfile and messing with containers 6 years ago
lance allen 612d5a3446 bringing it back, container style 6 years ago

@ -0,0 +1,26 @@
# Use Debian 9 because it's da best
FROM debian:9
# Establish environment variables/paths
ENV APP_DIR=/srv
# Work in app directory
WORKDIR $APP_DIR
# Install system packages required for building app
RUN apt-get update && apt-get install -y python-pip transmission-daemon
# Add application user so we're not running as root
RUN useradd -m swashbuckler
# Copy python library requirements
COPY requirements.txt .
# Install application dependencies
RUN pip install -r requirements.txt
# Drop transmission config
COPY settings.json /etc/transmission-daemon/settings.json
CMD /usr/bin/transmission-daemon --config-dir /etc/transmission-daemon/settings.json

@ -1,12 +1,17 @@
# The Pirate
# Swashbuckler
#####Command line torrent downloader with [Pushbullet](https://pushbullet.com) notifications.
### Command line [torrent](https://thepiratebay.org) downloader with [mobile](https://pushbullet.com) notifications.
Add torrents to your Transmission download queue from anywhere, either via Pushbullet magnet link push or [remote procedure calls](https://trac.transmissionbt.com/wiki/rpc) direct to the machine.
Search and add torrents to your Transmission download queue from anywhere in the world, either via Pushbullet magnet link (pull) or [remote procedure calls](https://trac.transmissionbt.com/wiki/rpc) (push) direct to the service.
-
###
Default behavior parses HTML pages on [ThePirateBay](https://thepiratebay.org) based on a search string provided, then passes the magnet link to a locally running Transmission-Daemon (localhost or same LAN).
Default behavior of the ad-hoc script does the following:
- Checks the RPC service functionality using the `transmissionrpc` Python library.
- Accepts user search input at the prompt after the RPC check; can override prompts via cli arguments.
- Requests and parses HTML pages on [ThePirateBay](https://thepiratebay.org) based on a search string provided, locates magnet links.
- Torrent results are displayed to the user with a selection prompt; can override prompts via cli arguments.
- Magnet link for selection is pushed to running [Transmission-Daemon](https://transmissionbt.com/) service; can execute .
Can also add direct HTML pages of the desired torrent with --url, and direct magnet links and torrent files with --file.

@ -0,0 +1,22 @@
{
"blocklist-enabled": 0,
"download-dir": "\/data\/downloads",
"download-limit": 100,
"download-limit-enabled": 0,
"encryption": 1,
"max-peers-global": 200,
"peer-port": 51413,
"pex-enabled": 1,
"port-forwarding-enabled": 0,
"rpc-authentication-required": false,
"rpc-bind-address": "0.0.0.0",
"rpc-enabled": true,
"rpc-password": "",
"rpc-port": 9091,
"rpc-url": "/transmission/",
"rpc-username": "transmission",
"rpc-whitelist": "0.0.0.0/0",
"rpc-whitelist-enabled": true,
"upload-limit": 100,
"upload-limit-enabled": 0
}

@ -0,0 +1,5 @@
fix the function handoff...
setup dockerfile
command line instructions
transmission config
playbook for installing
Loading…
Cancel
Save