title := $args.title -}}
{{- $provider := or $args.host $args.provider }}
{{- $account := $args.account }}
{{ if not $account }}
    {{ with index $args.page.Site.Params.videos $provider }}
        {{ with index . "account" }}{{ $account = . }}{{ end }}
    {{ end }}
{{ end }}
{{- $pc := "" -}}
{{- if eq $provider "youtube" }}
    {{- $pc = $args.page.Site.Config.Privacy.YouTube -}}
{{- else if eq $provider "vimeo" }}
    {{- $pc = $args.page.Site.Config.Privacy.Vimeo -}}
{{- end -}}
{{- $id := or $args.med