feat: add title to tvshow

This commit is contained in:
2024-11-06 02:51:04 +01:00
parent e332660f24
commit bcbb02a663
2 changed files with 24 additions and 10 deletions
+3 -2
View File
@@ -12,11 +12,12 @@ func (hq *Handlers) GetTVShow(c *gin.Context) {
ttShowID := c.Query("ttid")
slog.Info("GetTVShow", "ttid", ttShowID)
seasons := scraper.ScrapeSeasons(ttShowID)
title, seasons := scraper.ScrapeSeasons(ttShowID)
slog.Info("scraped seasons", "ttid", ttShowID)
slog.Info("scraped seasons", "ttid", ttShowID, "title", title)
c.JSON(http.StatusOK, gin.H{
"title": title,
"seasons": seasons,
})
}