config

package
v0.0.0-...-a6eb964 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 8, 2019 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Args for cli arguments parsing
	Args = struct {
		RemoteHost string `help:"remote host, default is '127.0.0.1'"`
		RemotePort int    `help:"remote port, default is '65221'"`

		LocalHost string `help:"local host, default is '0.0.0.0'"`
		LocalPort int    `help:"local port, default is '65220'"`
	}{
		RemoteHost: "127.0.0.1",
		RemotePort: 65221,

		LocalHost: "127.0.0.1",
		LocalPort: 65220,
	}
)

Functions

func AddonIcon

func AddonIcon() string

AddonIcon ...

func AddonResource

func AddonResource(args ...string) string

AddonResource ...

func CheckBurst

func CheckBurst()

CheckBurst ...

func IsWritablePath

func IsWritablePath(path string) error

IsWritablePath ...

func PathExists

func PathExists(path string) bool

PathExists returns whether path exists in OS

func TranslatePath

func TranslatePath(path string) string

TranslatePath ...

Types

type Addon

type Addon struct {
	ID      string
	Name    string
	Version string
	Enabled bool
}

Addon ...

type Configuration

type Configuration struct {
	DownloadPath              string
	TorrentsPath              string
	LibraryPath               string
	Info                      *xbmc.AddonInfo
	Platform                  *xbmc.Platform
	Language                  string
	TemporaryPath             string
	ProfilePath               string
	HomePath                  string
	XbmcPath                  string
	SpoofUserAgent            int
	KeepDownloading           int
	KeepFilesPlaying          int
	KeepFilesFinished         int
	UseTorrentHistory         bool
	TorrentHistorySize        int
	UseFanartTv               bool
	DisableBgProgress         bool
	DisableBgProgressPlayback bool
	ForceUseTrakt             bool
	UseCacheSelection         bool
	UseCacheSearch            bool
	CacheSearchDuration       int
	ResultsPerPage            int
	EnableOverlayStatus       bool
	SilentStreamStart         bool
	ChooseStreamAuto          bool
	ForceLinkType             bool
	UseOriginalTitle          bool
	UseAnimeEnTitle           bool
	AddSpecials               bool
	AddEpisodeNumbers         bool
	ShowUnairedSeasons        bool
	ShowUnairedEpisodes       bool
	SmartEpisodeStart         bool
	SmartEpisodeMatch         bool
	LibraryUpdate             int
	StrmLanguage              string
	LibraryNFOMovies          bool
	LibraryNFOShows           bool
	PlaybackPercent           int
	DownloadStorage           int
	AutoMemorySize            bool
	AutoKodiBufferSize        bool
	AutoAdjustMemorySize      bool
	AutoMemorySizeStrategy    int
	MemorySize                int
	AutoAdjustBufferSize      bool
	MinCandidateSize          int64
	MinCandidateShowSize      int64
	BufferTimeout             int
	BufferSize                int
	KodiBufferSize            int
	UploadRateLimit           int
	DownloadRateLimit         int
	AutoloadTorrents          bool
	AutoloadTorrentsPaused    bool
	LimitAfterBuffering       bool
	ConnectionsLimit          int
	ConnTrackerLimit          int
	ConnTrackerLimitAuto      bool
	SessionSave               int
	ShareRatioLimit           int
	SeedTimeRatioLimit        int
	SeedTimeLimit             int
	DisableUpload             bool
	DisableDHT                bool
	DisableTCP                bool
	DisableUTP                bool
	DisableUPNP               bool
	EncryptionPolicy          int
	ListenPortMin             int
	ListenPortMax             int
	ListenInterfaces          string
	ListenAutoDetectIP        bool
	ListenAutoDetectPort      bool
	OutgoingInterfaces        string
	TunedStorage              bool
	UseLibtorrentConfig       bool
	UseLibtorrentLogging      bool
	UseLibtorrentDeadlines    bool
	UseLibtorrentPauseResume  bool
	LibtorrentProfile         int
	MagnetTrackers            int
	Scrobble                  bool

	TraktUsername                  string
	TraktToken                     string
	TraktRefreshToken              string
	TraktTokenExpiry               int
	TraktSyncFrequency             int
	TraktSyncCollections           bool
	TraktSyncWatchlist             bool
	TraktSyncUserlists             bool
	TraktSyncWatched               bool
	TraktSyncWatchedBack           bool
	TraktSyncAddedMovies           bool
	TraktSyncAddedMoviesLocation   int
	TraktSyncAddedMoviesList       int
	TraktSyncAddedShows            bool
	TraktSyncAddedShowsLocation    int
	TraktSyncAddedShowsList        int
	TraktSyncRemovedMovies         bool
	TraktSyncRemovedMoviesLocation int
	TraktSyncRemovedMoviesList     int
	TraktSyncRemovedShows          bool
	TraktSyncRemovedShowsLocation  int
	TraktSyncRemovedShowsList      int
	TraktProgressUnaired           bool
	TraktProgressSort              int
	TraktProgressDateFormat        string
	TraktProgressColorDate         string
	TraktProgressColorShow         string
	TraktProgressColorEpisode      string
	TraktProgressColorUnaired      string
	TraktCalendarsDateFormat       string
	TraktCalendarsColorDate        string
	TraktCalendarsColorShow        string
	TraktCalendarsColorEpisode     string
	TraktCalendarsColorUnaired     string

	UpdateFrequency   int
	UpdateDelay       int
	UpdateAutoScan    bool
	PlayResume        bool
	PlayResumeBack    int
	StoreResume       bool
	StoreResumeAction int
	TMDBApiKey        string

	OSDBUser           string
	OSDBPass           string
	OSDBLanguage       string
	OSDBAutoLanguage   bool
	OSDBAutoLoad       bool
	OSDBAutoLoadCount  int
	OSDBAutoLoadDelete bool

	SortingModeMovies           int
	SortingModeShows            int
	ResolutionPreferenceMovies  int
	ResolutionPreferenceShows   int
	PercentageAdditionalSeeders int

	CustomProviderTimeoutEnabled bool
	CustomProviderTimeout        int

	InternalDNSEnabled  bool
	InternalDNSSkipIPv6 bool

	InternalProxyEnabled bool
	InternalProxyLogging bool

	AntizapretEnabled bool

	ProxyURL         string
	ProxyType        int
	ProxyEnabled     bool
	ProxyHost        string
	ProxyPort        int
	ProxyLogin       string
	ProxyPassword    string
	ProxyUseHTTP     bool
	ProxyUseTracker  bool
	ProxyUseDownload bool

	CompletedMove       bool
	CompletedMoviesPath string
	CompletedShowsPath  string

	LocalOnlyClient bool
}

Configuration ...

func Get

func Get() *Configuration

Get ...

func Reload

func Reload() *Configuration

Reload ...

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL