]> git.rmz.io Git - dotfiles.git/commitdiff
flexget: fix for move-movies, add failed entries
authorSamir Benmendil <samir.benmendil@gmail.com>
Wed, 14 Jan 2015 12:15:10 +0000 (12:15 +0000)
committerSamir Benmendil <samir.benmendil@gmail.com>
Wed, 14 Jan 2015 12:15:10 +0000 (12:15 +0000)
flexget/templates/move.template

index 314632d829989558630d4136f48efdd9f0325346..31e11d192583c3f5ac5c068b3a0647742b85b0a3 100644 (file)
@@ -2,8 +2,14 @@
 {%- 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 %}
+- {{entry.location|pathbase}}
+  => {% if entry.folder|d(false) %}{{entry.folder}}/{% endif %}{{entry.filename}}
   {%- endfor %}
 {% endfor %}
 {% endif -%}
+{% if task.failed -%}
+The following entries have failed for task {{task.name}}:
+{%- for entry in task.failed %}
+- {{entry.title}} Reason: {{entry.reason|d('unknown')}}
+{% endfor %}
+{% endif %}