update go mod (#334)

This commit is contained in:
Asim Aslam
2021-12-16 12:31:04 +00:00
committed by GitHub
parent f9e539ad88
commit 527dcc12c3
16 changed files with 164 additions and 165 deletions

View File

@@ -50,7 +50,7 @@ func (y *Youtube) Embed(ctx context.Context, req *pb.EmbedRequest, rsp *pb.Embed
}
}
rsp.LongUrl = "https://www.youtube.com/watch?v="+id
rsp.LongUrl = "https://www.youtube.com/watch?v=" + id
rsp.ShortUrl = "https://youtu.be/" + id
rsp.EmbedUrl = "https://www.youtube.com/embed/" + id
rsp.HtmlScript = `<iframe width="560" height="315" src="` + rsp.EmbedUrl + `" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>`