示例#1
0
文件: shows.go 项目: razer1s/quasar
func TopRatedShows(ctx *gin.Context) {
	page := -1
	if config.Get().EnablePagination == true {
		currentpage, err := strconv.Atoi(ctx.DefaultQuery("page", "0"))
		if err == nil {
			page = currentpage
		}
	}
	renderShows(tmdb.TopRatedShowsComplete("", config.Get().Language, page), ctx, page)
}
示例#2
0
文件: shows.go 项目: i96751414/quasar
func TopRatedShows(ctx *gin.Context) {
	page, _ := strconv.Atoi(ctx.DefaultQuery("page", "0"))
	renderShows(tmdb.TopRatedShowsComplete("", config.Get().Language, page), ctx, page, "")
}