Quantcast
Channel: help - Forum - FlexGet
Viewing all articles
Browse latest Browse all 837

Jinja problem

$
0
0

@gkovacsp wrote:

I have the following notify config:

notify:
  entries:
    title: "Sorozat: {{series_name}}"
    message: |+
      {% if series_season %}
        {{ series_season }}x{{ series_episode|pad(2) }} - {{ tvdb_ep_name|default('?')}}
      {% elif tvdb_ep_air_date %}
        {{ tvdb_ep_air_date }} - {{ tvdb_ep_name}}
      {% else %}
        No Data...
      {% endif %}
      {% if tvdb_ep_overview %}
        {{tvdb_ep_overview}}
      {% endif %}
    what: accepted
    via:
      - pushbullet:
          api_key: o.bbb
          channel: flexget_bbb

For shows with season and episode number I receive a nice message:

Sorozat: Blindspot
2x17 - Solos
Jane and her new flame Oliver find themselves in a dangerous situation that exposes the secrets they've both been keeping. Uncertain if they can trust each other, the couple must stay alive while Weller and the team race to save them.

While ones without it just send me the jinja code:

Sorozat: Conan (2010)
{% if series_season %}
{{ series_season }}x{{ series_episode|pad(2) }} - {{ tvdb_ep_name|default('?')}}
{% elif tvdb_ep_air_date %}
{{ tvdb_ep_air_date }} - {{ tvdb_ep_name}}
{% else %}
No Data...
{% endif %}
{% if tvdb_ep_overview %}
{{tvdb_ep_overview}}
{% endif %}

What is wrong with my jina template? I can't find a way how to debug it...

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 837

Trending Articles