From 927c3fc3d5e0b0384d2c58c0ab87ade884e24d54 Mon Sep 17 00:00:00 2001 From: dragongoose Date: Thu, 20 Jul 2023 14:40:34 -0400 Subject: [PATCH] Fix label --- routes/api/vods/vods.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/routes/api/vods/vods.go b/routes/api/vods/vods.go index 843a612..3fe153d 100644 --- a/routes/api/vods/vods.go +++ b/routes/api/vods/vods.go @@ -20,12 +20,14 @@ func Routes(route *gin.Engine) { context.JSON(200, extractor.FormatMessage(data, true)) }) - vods.GET("/:streamerName", func(context *gin.Context) { - data, err := twitch.GetVodMetadata(context.Param("streamerName")) + vods.GET("/:vodID", func(context *gin.Context) { + data, err := twitch.GetVodMetadata(context.Param("vodID")) if err != nil { context.Error(err) return } + + data.Type = "vod" context.JSON(200, extractor.FormatMessage(data, true)) })