func (s *Server) Configured() bool {
	return s != nil && s.URL != "" && s.Token != ""
}
Configured returns true ifthe server is configured, false otherwise.
package plex
import (
	"context"
	"fmt"
	"io/ioutil"
	"net/http"
	"time"
	"golift.io/cnfg"
)
type Server struct {
	Timeout    cnfg.Duration `toml:"timeout" xml:"timeout" json:"timeout"`
	Interval   cnfg.Duration `toml:"interval" xml:"interval" json:"interval"`
	URL        string        `toml:"url" xml:"url" json:"url"`
	Token      string        `toml:"token" xml:"token" json:"token"`
	AccountMap string        `toml:"account_map" xml:"account_map" json:"accountMap"`
	Name       string        `toml:"-" xml:"-" json:"-"`
	NoActivity bool          `toml:"no_activity" xml:"no_activity" json:"noActivity"`
	Delay      cnfg.Duration `toml:"activity_delay" xml:"activity_delay" json:"activityDelay"`
	Cooldown   cnfg.Duration `toml:"cooldown" xml:"cooldown" json:"cooldown"`
	SeriesPC   uint          `toml:"series_percent_complete" xml:"series_percent_complete" json:"seriesPc"`
	MoviesPC   uint          `toml:"movies_percent_complete" xml:"movies_percent_complete" json:"moviesPc"`
	client     *http.Client
}
const (
	defaultTimeout  = 10 * time.Second
	minimumTimeout  = 2 * time.Second
	defaultCooldown = 15 * time.Second
	minimumCooldown = 5 * time.Second
	minimumInterval = 5 * time.Minute
	minimumComplete = 70
	maximumComplete = 99
)
const defaultWaitTime = 10 * time.Second
var ErrNoURLToken = fmt.Errorf("token or URL for Plex missing")