Skip to content

Commit

Permalink
Merge pull request Flexget#46 from Nemesis7/patch-1
Browse files Browse the repository at this point in the history
prowl plugin now supports jinja in 'event' option
  • Loading branch information
gazpachoking committed May 7, 2013
2 parents 2bb3b9a + 930abc0 commit 2c836c7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions flexget/plugins/output/prowl.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,12 @@ def on_task_output(self, task, config):
priority = entry.get('priority', config['priority'])
description = config.get('description', entry['title'])

# If event has jinja template, render it
try:
event = entry.render(event)
except RenderError as e:
log.error('Error rendering jinja event: %s' % e)

# If description has jinja template, render it
try:
description = entry.render(description)
Expand Down

0 comments on commit 2c836c7

Please sign in to comment.