Start-Up
{% if settings.general.base_url == None %} {% set base_url = "/" %} {% else %} {% set base_url = settings.general.base_url %} {% endif %}
Path Mappings For TV Shows
{% if settings.general.path_mappings != None %} {% set path_substitutions = ast.literal_eval(settings.general.path_mappings) %} {% else %} {% set path_substitutions = [] %} {% endif %}

Path for Sonarr:

Path for Bazarr:

{% for x in range(0, 5) %} {% set path = [] %} {% if path_substitutions[x] %} {% set path = path_substitutions[x] %} {% else %} {% set path = ["", ""] %} {% endif %}
{% endfor %}
Path Mappings For Movies
{% if settings.general.path_mappings_movie != None %} {% set path_substitutions_movie = ast.literal_eval(settings.general.path_mappings_movie) %} {% else %} {% set path_substitutions_movie = [] %} {% endif %}

Path for Radarr:

Path for Bazarr:

{% for x in range(0, 5) %} {% set path_movie = [] %} {% if path_substitutions_movie[x] %} {% set path_movie = path_substitutions_movie[x] %} {% else %} {% set path_movie = ["", ""] %} {% endif %}
{% endfor %}