Skip to content

Commit

Permalink
remove ClapprHandler and associated files
Browse files Browse the repository at this point in the history
  • Loading branch information
rabilrbl committed Oct 13, 2024
1 parent 25e3ca8 commit a0d9112
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 96 deletions.
1 change: 0 additions & 1 deletion cmd/jiotv_go.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ func JioTVServer(jiotvServerConfig JioTVServerConfig) error {
app.Get("/playlist.m3u", handlers.PlaylistHandler)
app.Get("/play/:id", handlers.PlayHandler)
app.Get("/player/:id", handlers.PlayerHandler)
app.Get("/clappr/:id", handlers.ClapprHandler)
app.Get("/favicon.ico", handlers.FaviconHandler)
app.Get("/jtvimage/:file", handlers.ImageHandler)
app.Get("/epg.xml.gz", handlers.EPGHandler)
Expand Down
16 changes: 0 additions & 16 deletions internal/handlers/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -467,22 +467,6 @@ func PlayerHandler(c *fiber.Ctx) error {
})
}

// ClapprHandler is previous (old) Web Player to stream live TV
func ClapprHandler(c *fiber.Ctx) error {
id := c.Params("id")
quality := c.Query("q")
var play_url string
if quality != "" {
play_url = "/live/" + quality + "/" + id + ".m3u8"
} else {
play_url = "/live/" + id + ".m3u8"
}
c.Response().Header.Set("Cache-Control", "public, max-age=3600")
return c.Render("views/clappr", fiber.Map{
"play_url": play_url,
})
}

// FaviconHandler Responds for favicon.ico request
func FaviconHandler(c *fiber.Ctx) error {
return c.Redirect("/static/favicon.ico", fiber.StatusMovedPermanently)
Expand Down
79 changes: 0 additions & 79 deletions web/views/clappr.html

This file was deleted.

0 comments on commit a0d9112

Please sign in to comment.