Start-Up
%if settings.general.base_url is None: % base_url = "/" %else: % base_url = settings.general.base_url %end
Path Mappings for shows
%import ast %if settings.general.path_mappings is not None: % path_substitutions = ast.literal_eval(settings.general.path_mappings) %else: % path_substitutions = [] %end

Path for Sonarr:

Path for Bazarr:

%for x in range(0, 5): % path = [] % try: % path = path_substitutions[x] % except IndexError: % path = ["", ""] % end
%end
Path Mappings for movies
%import ast %if settings.general.path_mappings_movie is not None: % path_substitutions_movie = ast.literal_eval(settings.general.path_mappings_movie) %else: % path_substitutions_movie = [] %end

Path for Radarr:

Path for Bazarr:

%for x in range(0, 5): % path_movie = [] % try: % path_movie = path_substitutions_movie[x] % except IndexError: % path_movie = ["", ""] % end
%end