Compare commits
No commits in common. "main" and "1.2.0" have entirely different histories.
1 changed files with 6 additions and 1 deletions
|
@ -97,7 +97,7 @@ class ConsumerRSS(Plugin):
|
||||||
id = evt.event_id
|
id = evt.event_id
|
||||||
timestamp = dt = datetime.datetime.fromtimestamp(evt.timestamp/1000)
|
timestamp = dt = datetime.datetime.fromtimestamp(evt.timestamp/1000)
|
||||||
self.log.debug(timestamp)
|
self.log.debug(timestamp)
|
||||||
region = split_message[0].lower()
|
region = split_message[0]
|
||||||
message = ' '.join(split_message[1:])
|
message = ' '.join(split_message[1:])
|
||||||
|
|
||||||
# Insert into database
|
# Insert into database
|
||||||
|
@ -137,6 +137,11 @@ class ConsumerRSS(Plugin):
|
||||||
et.SubElement(channel, "description").text = f"ICE reports for {region}"
|
et.SubElement(channel, "description").text = f"ICE reports for {region}"
|
||||||
link = et.SubElement(channel, 'link')
|
link = et.SubElement(channel, 'link')
|
||||||
link.text = self.config["feed_url"]
|
link.text = self.config["feed_url"]
|
||||||
|
self_link = et.SubElement(channel, 'atom:link')
|
||||||
|
self_link.set('rel', 'self')
|
||||||
|
self_link.set('href', self.config["feed_url"])
|
||||||
|
self_link.set('type', 'application/rss+xml')
|
||||||
|
|
||||||
|
|
||||||
# Add items
|
# Add items
|
||||||
for item in feed_items:
|
for item in feed_items:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue