mirror of
https://github.com/caronc/apprise.git
synced 2025-01-03 20:49:19 +01:00
Port is correctly placed in Bark URL if provided (#672)
This commit is contained in:
parent
4b4e4ffd77
commit
370b1af5a1
@ -208,14 +208,13 @@ class NotifyBark(NotifyBase):
|
|||||||
super(NotifyBark, self).__init__(**kwargs)
|
super(NotifyBark, self).__init__(**kwargs)
|
||||||
|
|
||||||
# Prepare our URL
|
# Prepare our URL
|
||||||
self.notify_url = '%s://%s/push' % (
|
self.notify_url = '%s://%s%s/push' % (
|
||||||
'https' if self.secure else 'http',
|
'https' if self.secure else 'http',
|
||||||
self.host,
|
self.host,
|
||||||
|
':{}'.format(self.port)
|
||||||
|
if (self.port and isinstance(self.port, int)) else '',
|
||||||
)
|
)
|
||||||
|
|
||||||
if isinstance(self.port, int):
|
|
||||||
self.notify_url += ':%d' % self.port
|
|
||||||
|
|
||||||
# Assign our category
|
# Assign our category
|
||||||
self.category = \
|
self.category = \
|
||||||
category if isinstance(category, six.string_types) else None
|
category if isinstance(category, six.string_types) else None
|
||||||
|
Loading…
Reference in New Issue
Block a user