{{/* Set some variables based on if its a episode/bonus/trailer */}}
{{/* This will need updating if we go above 9 seasons or episodes */}}
{{ if eq (string .Params.seasonepisode) (string "0") }}
    {{/* Episode 0 are trailers */}}
    {{ $.Scratch.Set "episodeNumber" (printf "Trailer" ) }}
    {{ $.Scratch.Set "imageFolder" (printf "S0%sE0%s" (string .Params.season) (string .Params.seasonepisode) ) }}
{{ else }}
    {{/* Regular episode */}}
    {{ $.Scratch.Set "episodeNumber" (printf "%s" (string .Param