mirror of
https://github.com/StuffAnThings/qbit_manage.git
synced 2025-10-11 14:27:09 +08:00
standardize json payloads for webhooks
This commit is contained in:
parent
d22796d398
commit
11fdb0af9d
1 changed files with 6 additions and 6 deletions
|
@ -127,7 +127,7 @@ class Qbt:
|
||||||
"title":"Updating Categories",
|
"title":"Updating Categories",
|
||||||
"body": "\n".join(body),
|
"body": "\n".join(body),
|
||||||
"torrent_name":torrent.name,
|
"torrent_name":torrent.name,
|
||||||
"torrent_new_cat": new_cat,
|
"torrent_category": new_cat,
|
||||||
"torrent_tracker": tracker["url"],
|
"torrent_tracker": tracker["url"],
|
||||||
"notifiarr_indexer": tracker["notifiarr"]
|
"notifiarr_indexer": tracker["notifiarr"]
|
||||||
}
|
}
|
||||||
|
@ -256,7 +256,7 @@ class Qbt:
|
||||||
"body": "\n".join(body),
|
"body": "\n".join(body),
|
||||||
"torrent_name":torrent.name,
|
"torrent_name":torrent.name,
|
||||||
"torrent_category":torrent.category,
|
"torrent_category":torrent.category,
|
||||||
"torrent_add_tag": 'noHL',
|
"torrent_tag": 'noHL',
|
||||||
"torrent_tracker": tracker["url"],
|
"torrent_tracker": tracker["url"],
|
||||||
"notifiarr_indexer": tracker["notifiarr"],
|
"notifiarr_indexer": tracker["notifiarr"],
|
||||||
"torrent_max_ratio": nohardlinks[category]["max_ratio"],
|
"torrent_max_ratio": nohardlinks[category]["max_ratio"],
|
||||||
|
@ -293,7 +293,7 @@ class Qbt:
|
||||||
"body": "\n".join(body),
|
"body": "\n".join(body),
|
||||||
"torrent_name":torrent.name,
|
"torrent_name":torrent.name,
|
||||||
"torrent_category":torrent.category,
|
"torrent_category":torrent.category,
|
||||||
"torrent_remove_tag": 'noHL',
|
"torrent_tag": 'noHL',
|
||||||
"torrent_tracker": tracker["url"],
|
"torrent_tracker": tracker["url"],
|
||||||
"notifiarr_indexer": tracker["notifiarr"],
|
"notifiarr_indexer": tracker["notifiarr"],
|
||||||
"torrent_max_ratio": restore_max_ratio,
|
"torrent_max_ratio": restore_max_ratio,
|
||||||
|
@ -436,7 +436,7 @@ class Qbt:
|
||||||
"body": pot_unr,
|
"body": pot_unr,
|
||||||
"torrent_name":t_name,
|
"torrent_name":t_name,
|
||||||
"torrent_category":t_cat,
|
"torrent_category":t_cat,
|
||||||
"torrent_add_tag": "issue",
|
"torrent_tag": "issue",
|
||||||
"torrent_status": msg_up,
|
"torrent_status": msg_up,
|
||||||
"torrent_tracker": tracker["url"],
|
"torrent_tracker": tracker["url"],
|
||||||
"notifiarr_indexer": tracker["notifiarr"],
|
"notifiarr_indexer": tracker["notifiarr"],
|
||||||
|
@ -498,7 +498,7 @@ class Qbt:
|
||||||
"torrent_name":t_name,
|
"torrent_name":t_name,
|
||||||
"torrent_category": category,
|
"torrent_category": category,
|
||||||
"torrent_save_path": dest,
|
"torrent_save_path": dest,
|
||||||
"torrent_add_tag": "cross-seed"
|
"torrent_tag": "cross-seed"
|
||||||
}
|
}
|
||||||
self.config.send_notifications(attr)
|
self.config.send_notifications(attr)
|
||||||
added += 1
|
added += 1
|
||||||
|
@ -526,7 +526,7 @@ class Qbt:
|
||||||
"body":body,
|
"body":body,
|
||||||
"torrent_name":t_name,
|
"torrent_name":t_name,
|
||||||
"torrent_category": t_cat,
|
"torrent_category": t_cat,
|
||||||
"torrent_add_tag": "cross-seed"
|
"torrent_tag": "cross-seed"
|
||||||
}
|
}
|
||||||
self.config.send_notifications(attr)
|
self.config.send_notifications(attr)
|
||||||
if not dry_run: torrent.add_tags(tags='cross-seed')
|
if not dry_run: torrent.add_tags(tags='cross-seed')
|
||||||
|
|
Loading…
Add table
Reference in a new issue