diff --git a/pages/soundtrack/soundtrack.go b/pages/soundtrack/soundtrack.go index 8a140230..bfc3b238 100644 --- a/pages/soundtrack/soundtrack.go +++ b/pages/soundtrack/soundtrack.go @@ -35,7 +35,7 @@ func Get(ctx *aero.Context) string { "og:title": track.Title, "og:description": track.MainAnime().Title.Canonical + " (" + strings.Join(descriptionTags, ", ") + ")", "og:url": "https://" + ctx.App.Config.Domain + track.Link(), - "og:site_name": "notify.moe", + "og:site_name": ctx.App.Config.Domain, "og:type": "music.song", }, } @@ -44,6 +44,11 @@ func Get(ctx *aero.Context) string { openGraph.Tags["og:image"] = track.MainAnime().ImageLink("large") } + if track.File != "" { + openGraph.Tags["og:audio"] = "https://" + ctx.App.Config.Domain + "/audio/" + track.File + openGraph.Tags["og:audio:type"] = "audio/vnd.facebook.bridge" + } + // Set video so that it can be played youtube := track.MediaByService("Youtube")