https://github.com/snawoot/transmission-resync
Updates torrents in transmission, pulling them from upstream tracker site
https://github.com/snawoot/transmission-resync
Last synced: about 1 month ago
JSON representation
Updates torrents in transmission, pulling them from upstream tracker site
- Host: GitHub
- URL: https://github.com/snawoot/transmission-resync
- Owner: Snawoot
- License: mit
- Created: 2022-06-07T19:14:39.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-06-11T08:03:37.000Z (almost 3 years ago)
- Last Synced: 2025-01-26T06:11:16.232Z (3 months ago)
- Language: Makefile
- Size: 43 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# transmission-resync
Updates torrents in transmission, pulling them from upstream tracker site. It invokes external scripts defined in configuration to ask if any of them have updated torrent URL. If such URL found, torrent will be replaced in transmission.
External scripts get fed via stdin with JSON describing torrent. These scripts are expected to return new torrent URL via stdout or empty string (nothing). In both cases successful exit code is mandatory, otherwise transmission-resync will stop processing of chain of scripts.
May be a great automation addition to [transmission-monitor](https://github.com/Snawoot/transmission-monitor).
Remote RPC must be enabled in Transmission for this program to work.
## Installation
#### Binaries
Pre-built binaries are available [here](https://github.com/Snawoot/transmission-resync/releases/latest).
#### Build from source
Alternatively, you may install transmission-resync from source. Run the following within the source directory:
```
make install
```## Configuration
Configuration example:
#### /home/user/.config/transmission-resync.yaml
```yaml
rpc:
user: transmissionuser
password: transmissionpassword
chain:
- command:
- /home/user/.config/rutracker-resync.sh
```Please consult [source](cmd/transmission-resync/defaults.go) for all available configuration options.
#### /home/user/.config/rutracker-resync.sh
To be done.
## Synopsis
```
$ ./bin/transmission-resync -h
Usage of transmission-resync:
-conf string
path to configuration file (default "/home/user/.config/transmission-resync.yaml")
-hash string
target torrent hash
-version
show program version and exit
```