#####Command line torrent downloader with [Pushbullet](https://pushbullet.com) notifications.
#####Command line torrent downloader with [Pushbullet](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.
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.
-
Default behavior parses HTML pages on [ThePirateBay](https://thepiratebay.se) based on a search string provided, then passes the magnet link to a locally running Transmission-Daemon (localhost or same LAN).
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).
Can also add direct HTML pages of the desired torrent with --url, and direct magnet links and torrent files with --file.
@ -21,7 +21,7 @@ This script was written in Python version 2.7. Version 3 compatibility requires
* Client setup
* Server setup
#### Client Side (thepirate)
## Client Side
3 external Python libraries needed. Please ensure the following are installed to the system
@ -32,41 +32,69 @@ This script was written in Python version 2.7. Version 3 compatibility requires
> TIP: If pip is installed, just run the following as root:
Make sure the server running Transmission (if not localhost) is accepting traffic on port 9091/tcp and RPC is enabled in the Transmission settings.json file. Set your whitelist to your LAN subnet. Read about configuring Transmission [here](https://trac.transmissionbt.com/wiki/EditConfigFiles).
![img](img/transmissionrpc_config.png)
### Firewall
Open up the Transmission port if the server is not localhost.
Firewalld
```
$ firewall-cmd --add-port=9091/tcp --permanent
```
IPTables
```
$ iptables -A INPUT -p tcp --dport 9091 -j ACCEPT
```
### thepirate-satellite
[pushbullet.py](https://github.com/randomchars/pushbullet.py) is needed for Pushbullet notifications. You also need transmissionrpc on the server side so it can clear completed torrents.
```
$ pip install pushbullet.py transmissionrpc
$ pip install -r requirements.txt
```
Put your PushBullet API key in api variable in the script and set a cron job to run thepirate-satellite.py every X minutes.
Put your PushBullet API key in the api variable in the script and set a cron job to run thepirate-satellite.py every X minutes.
Make sure the server running Transmission (if not localhost) is accepting traffic on TCP/9091 and RPC is enabled in the Transmission settings.json file. Set your whitelist to your LAN subnet. Read about configuring Transmission [here](https://trac.transmissionbt.com/wiki/EditConfigFiles).