Esempio n. 1
0
func TVMostVoted(ctx *gin.Context) {
	page := -1
	if config.Get().EnablePagination == true {
		currentpage, err := strconv.Atoi(ctx.DefaultQuery("page", "0"))
		if err == nil {
			page = currentpage
		}
	}
	renderMovies(tmdb.MostVotedShowsComplete("", config.Get().Language, page), ctx, page)
}
Esempio n. 2
0
func TVMostVoted(ctx *gin.Context) {
	page, _ := strconv.Atoi(ctx.DefaultQuery("page", "0"))
	renderMovies(tmdb.MostVotedShowsComplete("", config.Get().Language, page), ctx, page, "")
}