diff --git a/CHANGELOG b/CHANGELOG index 13ba588..a305f63 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -2,6 +2,7 @@ # New Features - cross-seed will move torrent to an error folder if it fails to inject torrent +- Define multiple announce urls for one tracker (#328 Thanks to @buthed010203 for the PR) # Bug Fixes - Fixes #329 (Updates missing share_limits tag even when share_limits are satisfied) diff --git a/VERSION b/VERSION index e5a2f12..d4edeac 100755 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -4.0.1-develop4 +4.0.1-develop5 diff --git a/config/config.yml.sample b/config/config.yml.sample index 5d08cbe..10a3673 100755 --- a/config/config.yml.sample +++ b/config/config.yml.sample @@ -67,7 +67,7 @@ cat_change: tracker: # Mandatory # Tag Parameters - # : # This is the keyword in the tracker url + # : # This is the keyword in the tracker url. You can define multiple tracker urls by splitting with `|` delimiter # Set tag name. Can be a list of tags or a single tag # tag: # Set this to the notifiarr react name. This is used to add indexer reactions to the notifications sent by Notifiarr @@ -107,13 +107,10 @@ tracker: privatehd: tag: PrivateHD notifiarr: - tleechreload: - tag: TorrentLeech - notifiarr: torrentleech torrentdb: tag: TorrentDB notifiarr: torrentdb - torrentleech: + torrentleech|tleechreload: tag: TorrentLeech notifiarr: torrentleech tv-vault: diff --git a/modules/config.py b/modules/config.py index 8f7e40d..459f153 100755 --- a/modules/config.py +++ b/modules/config.py @@ -100,7 +100,12 @@ class Config: if "cat_change" in self.data: self.data["cat_change"] = self.data.pop("cat_change") if "tracker" in self.data: - self.data["tracker"] = self.data.pop("tracker") + trackers = self.data.pop("tracker") + self.data["tracker"] = {} + # Splits tracker urls at pipes, useful for trackers with multiple announce urls + for tracker_urls, data in trackers.items(): + for tracker_url in tracker_urls.split("|"): + self.data["tracker"][tracker_url.strip()] = data else: self.data["tracker"] = {} if "nohardlinks" in self.data: