Exemple #1
0
func ProviderDisable(ctx *gin.Context) {
	addonId := ctx.Params.ByName("provider")
	xbmc.SetAddonEnabled(addonId, false)
	path := xbmc.InfoLabel("Container.FolderPath")
	if path == "plugin://plugin.video.quasar/provider/" {
		xbmc.Refresh()
	}
	ctx.String(200, "")
}
Exemple #2
0
func SetViewMode(ctx *gin.Context) {
	content_type := ctx.Params.ByName("content_type")
	viewName := xbmc.InfoLabel("Container.Viewmode")
	viewMode := xbmc.GetCurrentView()
	cmdLog.Noticef("ViewMode: %s (%s)", viewName, viewMode)
	if viewMode != "0" {
		xbmc.SetSetting("viewmode_"+content_type, viewMode)
	}
	ctx.String(200, "")
}