rtorrent-ps
rtorrent-ps copied to clipboard
Tracker aliases - allow wildcard/endswith
Wildcards for the recently introduced trackers aliases (a560233217a0d1eef6919dee36455680dd60dcbf) would be useful if a tracker uses multiple subdomains.
The mentioned match method is good for this.
No, since this is based on a map<>.
Oh, sorry, my bad, I haven't looked at the code.
Implementation must loop over tokenized domain string, removing (at least one) subdomain(s), and try a lookup with the reduced name.
Wouldn't it better if d.tracker_domain command would return back the alias as well if there's any? Then this command could be used to display it on the UI.
If not then maybe a new command could be used e.g. d.tracker_domain.alias for this.
"alias" is not a rt-ps concept.