mirror of
https://github.com/caronc/apprise.git
synced 2024-12-29 01:59:11 +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)
|
||||
|
||||
# Prepare our URL
|
||||
self.notify_url = '%s://%s/push' % (
|
||||
self.notify_url = '%s://%s%s/push' % (
|
||||
'https' if self.secure else 'http',
|
||||
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
|
||||
self.category = \
|
||||
category if isinstance(category, six.string_types) else None
|
||||
|
Loading…
Reference in New Issue
Block a user