Fixed soundtrack video OpenGraph

This commit is contained in:
Eduard Urbach 2017-10-18 22:28:47 +02:00
parent 677dc45184
commit 15267bd102

View File

@ -31,7 +31,8 @@ func Get(ctx *aero.Context) string {
} }
// Set video so that it can be played // Set video so that it can be played
youtube := track.MediaByName("Youtube") youtube := track.MediaByService("Youtube")
if len(youtube) > 0 { if len(youtube) > 0 {
openGraph.Tags["og:video"] = "https://www.youtube.com/v/" + youtube[0].ServiceID openGraph.Tags["og:video"] = "https://www.youtube.com/v/" + youtube[0].ServiceID
} }