nuxencs / seasonpackarr

A companion app for autobrr that automagically hardlinks downloaded episodes to a season folder when a season pack is announced, eliminating the need for re-downloading existing episodes.
GNU General Public License v2.0
45 stars 3 forks source link

feat(config): support for multiple torrent clients #31

Closed nuxencs closed 9 months ago

nuxencs commented 9 months ago

This adds support to define multiple torrent clients in your config file. To choose to which client the request gets sent to, you can provide clientname in the payload json like this:

{
   "name": "{{ .TorrentName | js }}",
   "clientname": "default"
}

If no client is defined, or the client you defined doesn't exist in the config, it will always default to the first one in the config file.

This PR also moves away from the toml config and implements a yaml config, to make defining multiple clients clearer.