added dragnet function

This commit is contained in:
2022-08-31 10:56:37 -05:00
parent 4cd1c519e2
commit 81ad9e3d13
4 changed files with 12 additions and 6 deletions

View File

@@ -9,6 +9,7 @@ import time
import datetime
import logging
from collections import Counter
import csv
class Qbt:
def __init__(self):
@@ -30,6 +31,7 @@ class Qbt:
self.tl = logging
self.po = pushover
self.ct = Counter
self.cv = csv
# Variables torlog uses from config.json
self.use_pushover = self.config["use_pushover"]
self.use_log = self.config["use_log"]
@@ -63,7 +65,6 @@ class Qbt:
except qbittorrentapi.APIError as e:
self.tl.exception(e)
self.po.send_message(e, title="qbit-maid API ERROR")
# self.torrentlist = {}
# Pulling all torrent data
self.torrentlist = self.qbt_client.torrents_info()
#Main process block