]> git.rmz.io Git - dotfiles.git/blobdiff - flexget/templates/move.template
flexget: email template for move tasks
[dotfiles.git] / flexget / templates / move.template
diff --git a/flexget/templates/move.template b/flexget/templates/move.template
new file mode 100644 (file)
index 0000000..314632d
--- /dev/null
@@ -0,0 +1,9 @@
+{% if task.accepted -%}
+{%- for group in task.accepted|groupby('task') %}
+FlexGet has just downloaded {{group.list|length}} new entries for task {{group.grouper}}:
+  {%- for entry in group.list %}
+- {{entry.location|pathbase}}{% if entry.output|d(false) %}
+  => {{entry.output|replace(entry.destination+'/','')}}{% endif %}
+  {%- endfor %}
+{% endfor %}
+{% endif -%}