mirror of
https://github.com/StuffAnThings/qbit_manage.git
synced 2026-03-16 05:43:09 +08:00
Update qbit_manage.py
This commit is contained in:
parent
b07d955124
commit
e45a3f1064
1 changed files with 1 additions and 4 deletions
|
|
@ -24,7 +24,7 @@ with open(args.config, "r") as cfg_file:
|
|||
|
||||
# Actual API call to connect to qbt.
|
||||
client = Client(host=cfg["qbt"]["host"], username=cfg["qbt"]["user"], password=cfg["qbt"]["pass"])
|
||||
# torrent_list = client.torrents.info()
|
||||
torrent_list = client.torrents.info()
|
||||
|
||||
|
||||
def get_category(path):
|
||||
|
|
@ -39,7 +39,6 @@ def get_category(path):
|
|||
|
||||
|
||||
def update_category():
|
||||
torrent_list = client.torrents.info()
|
||||
num_cat = 0
|
||||
for torrent in torrent_list:
|
||||
if torrent.category == '':
|
||||
|
|
@ -66,7 +65,6 @@ def get_tags(url):
|
|||
|
||||
|
||||
def update_tags():
|
||||
torrent_list = client.torrents.info()
|
||||
num_tags = 0
|
||||
for torrent in torrent_list:
|
||||
if torrent.tags == '':
|
||||
|
|
@ -84,7 +82,6 @@ def update_tags():
|
|||
|
||||
|
||||
def rem_unregistered():
|
||||
torrent_list = client.torrents.info()
|
||||
rem_unr = 0
|
||||
for torrent in torrent_list:
|
||||
for status in torrent.trackers:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue