This commit is contained in:
2022-10-30 23:27:08 -05:00
parent 5c167bc3a0
commit a73cb55b0d
5 changed files with 249 additions and 20 deletions

View File

@@ -10,12 +10,12 @@ def cont_notify(self):
"""Seting up to use pushover, if self.use_pushover is set to true and
if valid self.po_key and self.po_token is provided in the config file"""
if self.use_pushover:
self.poc = self.po.Client(self.po_key, api_token=self.po_token)
self.poc = self.po.Pushover(self.po_token)
def cont_notify_summary(self):
"""Main notification method when the app is used in an automated fashion"""
self.poc.send_message(f" \
{self.extm}", title="--- qbit-maid summary ---")
self.poc.message(self.po_key,f" \
{self.extm}", title="--- crane summary ---")
def list_first_cont(self, index=0):
"""Only lists the first torrent"""