" (printf "https://www.youtube.com/watch?v=%s" $id) }}
        {{ $padding := "56.25%" }}

        {{ with try (resources.GetRemote $api) }}
            {{ with .Err }}
                {{ errorf "Unable to parse video metadata '%q': %s\n  %s" $api $origin . }}
            {{ else }}
                {{ $data := .Value | transform.Unmarshal }}
                {{ if $args.autotitle }}{{ with $data.title }}{{ $title = . }}{{ end }}{{ end }}
                {{ $padding = printf "%.2f%%" (mul (div $data.height $d