mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-06 05:01:14 -07:00
parent
cfc7b817b3
commit
09c28e434d
1 changed files with 5 additions and 2 deletions
|
@ -3391,8 +3391,11 @@ class PUSHOVER(Notifier):
|
||||||
|
|
||||||
image = pretty_metadata.get_image()
|
image = pretty_metadata.get_image()
|
||||||
if image:
|
if image:
|
||||||
|
if len(image[1]) <= 5242880: # 5MB max attachment size
|
||||||
files = {'attachment': image}
|
files = {'attachment': image}
|
||||||
headers = {}
|
headers = {}
|
||||||
|
else:
|
||||||
|
logger.warn("Tautulli Notifiers :: Image size exceeds 5MB limit for {name}.".format(name=self.NAME))
|
||||||
|
|
||||||
return self.make_request('https://api.pushover.net/1/messages.json', headers=headers, data=data, files=files)
|
return self.make_request('https://api.pushover.net/1/messages.json', headers=headers, data=data, files=files)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue