diff --git a/README.md b/README.md index a1902d0..3864963 100644 --- a/README.md +++ b/README.md @@ -32,10 +32,20 @@ It should look something like this: "logpath": "./qc.log", "age": 2419200, "use_pushover": true, + "use_log": true, "po_key": "", "po_token": "" } -loglevel - is what log messages are written to the log file. It only accepts INFO or DEBUG. - -age - is a number in seconds for how long we keep torrents from IPTORRENTS. \ No newline at end of file +Config.json +- host - string, ip or hostname of qbittorrent server +- port - port of admin gui(used for api aswell) +- username - admin account for qbittorrent +- password - password for admin account +- loglevel - is what log messages are written to the log file. INFO or DEBUG are valid entries(case sensitive). +- logpath - will write a log in root directory if left as is other wise specify other path using forward slashes +- age - is a number in seconds for how long we keep torrents from IPTORRENTS. +- use_pushover - true or false to enable or disable pushover notification summary +- use_log - true or false to enable or disable writing to alog file +- po_key - pushover key +- po_token - pushover api token \ No newline at end of file diff --git a/__pycache__/qlist.cpython-39.pyc b/__pycache__/qlist.cpython-39.pyc new file mode 100644 index 0000000..d61513e Binary files /dev/null and b/__pycache__/qlist.cpython-39.pyc differ diff --git a/__pycache__/qlogging.cpython-39.pyc b/__pycache__/qlogging.cpython-39.pyc new file mode 100644 index 0000000..89c46bb Binary files /dev/null and b/__pycache__/qlogging.cpython-39.pyc differ diff --git a/__pycache__/qprocess.cpython-39.pyc b/__pycache__/qprocess.cpython-39.pyc new file mode 100644 index 0000000..a390813 Binary files /dev/null and b/__pycache__/qprocess.cpython-39.pyc differ diff --git a/qbit-maid.py b/qbit-maid.py index e319710..1ee4d25 100644 --- a/qbit-maid.py +++ b/qbit-maid.py @@ -46,8 +46,9 @@ class Qbt: self.tl.info('Connecting to host.') self.qbt_client.auth_log_in() self.tl.info('Connected.') - except qbittorrentapi.LoginFailed as e: + except qbittorrentapi.APIError as e: self.tl.exception(e) + self.poc.send_message(e, title="qbit-maid API ERROR") self.torrentlist = {} self.torrentlist = self.qbt_client.torrents_info() listqbitapiinfo(self)