mirror of
https://github.com/StuffAnThings/qbit_manage.git
synced 2025-10-12 23:08:31 +08:00
Merge pull request #328 from buthed010203/patch-1
Allow defining multiple announce urls for one tracker
This commit is contained in:
commit
1169ef39fd
4 changed files with 10 additions and 7 deletions
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
# New Features
|
# New Features
|
||||||
- cross-seed will move torrent to an error folder if it fails to inject torrent
|
- 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
|
# Bug Fixes
|
||||||
- Fixes #329 (Updates missing share_limits tag even when share_limits are satisfied)
|
- Fixes #329 (Updates missing share_limits tag even when share_limits are satisfied)
|
||||||
|
|
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
||||||
4.0.1-develop4
|
4.0.1-develop5
|
||||||
|
|
|
@ -67,7 +67,7 @@ cat_change:
|
||||||
tracker:
|
tracker:
|
||||||
# Mandatory
|
# Mandatory
|
||||||
# Tag Parameters
|
# Tag Parameters
|
||||||
# <Tracker URL Keyword>: # <MANDATORY> This is the keyword in the tracker url
|
# <Tracker URL Keyword>: # <MANDATORY> This is the keyword in the tracker url. You can define multiple tracker urls by splitting with `|` delimiter
|
||||||
# <MANDATORY> Set tag name. Can be a list of tags or a single tag
|
# <MANDATORY> Set tag name. Can be a list of tags or a single tag
|
||||||
# tag: <Tag Name>
|
# tag: <Tag Name>
|
||||||
# <OPTIONAL> Set this to the notifiarr react name. This is used to add indexer reactions to the notifications sent by Notifiarr
|
# <OPTIONAL> 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:
|
privatehd:
|
||||||
tag: PrivateHD
|
tag: PrivateHD
|
||||||
notifiarr:
|
notifiarr:
|
||||||
tleechreload:
|
|
||||||
tag: TorrentLeech
|
|
||||||
notifiarr: torrentleech
|
|
||||||
torrentdb:
|
torrentdb:
|
||||||
tag: TorrentDB
|
tag: TorrentDB
|
||||||
notifiarr: torrentdb
|
notifiarr: torrentdb
|
||||||
torrentleech:
|
torrentleech|tleechreload:
|
||||||
tag: TorrentLeech
|
tag: TorrentLeech
|
||||||
notifiarr: torrentleech
|
notifiarr: torrentleech
|
||||||
tv-vault:
|
tv-vault:
|
||||||
|
|
|
@ -100,7 +100,12 @@ class Config:
|
||||||
if "cat_change" in self.data:
|
if "cat_change" in self.data:
|
||||||
self.data["cat_change"] = self.data.pop("cat_change")
|
self.data["cat_change"] = self.data.pop("cat_change")
|
||||||
if "tracker" in self.data:
|
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:
|
else:
|
||||||
self.data["tracker"] = {}
|
self.data["tracker"] = {}
|
||||||
if "nohardlinks" in self.data:
|
if "nohardlinks" in self.data:
|
||||||
|
|
Loading…
Add table
Reference in a new issue