config

package
v0.0.0-...-29a3764 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2020 License: GPL-3.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
	UseCacheTorrents           bool
	CacheSearchDuration        int
	ShowFilesWatched           bool
	ResultsPerPage             int
	GreetingEnabled            bool
	EnableOverlayStatus        bool
	SilentStreamStart          bool
	AutoYesEnabled             bool
	AutoYesTimeout             int
	ChooseStreamAuto           bool
	ForceLinkType              bool
	UseOriginalTitle           bool
	UseAnimeEnTitle            bool
	UseLowestReleaseDate       bool
	AddSpecials                bool
	AddEpisodeNumbers          bool
	ShowUnairedSeasons         bool
	ShowUnairedEpisodes        bool
	ShowSeasonsAll             bool
	ShowSeasonsOrder           int
	SmartEpisodeStart          bool
	SmartEpisodeMatch          bool
	SmartEpisodeChoose         bool
	LibraryEnabled             bool
	LibrarySyncEnabled         bool
	LibrarySyncPlaybackEnabled bool
	LibraryUpdate              int
	StrmLanguage               string
	LibraryNFOMovies           bool
	LibraryNFOShows            bool
	PlaybackPercent            int
	DownloadStorage            int
	SkipBurstSearch            bool
	AutoMemorySize             bool
	AutoKodiBufferSize         bool
	AutoAdjustMemorySize       bool
	AutoMemorySizeStrategy     int
	MemorySize                 int
	AutoAdjustBufferSize       bool
	MinCandidateSize           int64
	MinCandidateShowSize       int64
	BufferTimeout              int
	BufferSize                 int
	EndBufferSize              int
	KodiBufferSize             int
	UploadRateLimit            int
	DownloadRateLimit          int
	AutoloadTorrents           bool
	AutoloadTorrentsPaused     bool
	LimitAfterBuffering        bool
	ConnectionsLimit           int
	ConnTrackerLimit           int
	ConnTrackerLimitAuto       bool
	SessionSave                int

	SeedForever        bool
	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
	DiskCacheSize            int
	UseLibtorrentConfig      bool
	UseLibtorrentLogging     bool
	UseLibtorrentDeadlines   bool
	UseLibtorrentPauseResume bool
	LibtorrentProfile        int
	MagnetTrackers           int
	MagnetResolveTimeout     int
	Scrobble                 bool

	AutoScrapeEnabled        bool
	AutoScrapeLibraryEnabled bool
	AutoScrapeStrategy       int
	AutoScrapeStrategyExpect int
	AutoScrapePerHours       int
	AutoScrapeLimitMovies    int
	AutoScrapeInterval       int

	TraktClientID                  string
	TraktClientSecret              string
	TraktUsername                  string
	TraktToken                     string
	TraktRefreshToken              string
	TraktTokenExpiry               int
	TraktSyncEnabled               bool
	TraktSyncPlaybackEnabled       bool
	TraktSyncFrequencyMin          int
	TraktSyncCollections           bool
	TraktSyncWatchlist             bool
	TraktSyncUserlists             bool
	TraktSyncPlaybackProgress      bool
	TraktSyncHidden                bool
	TraktSyncWatched               bool
	TraktSyncWatchedSingle         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
	OSDBAutoLoadSkipExists bool
	OSDBIncludedEnabled    bool
	OSDBIncludedSkipExists bool

	SortingModeMovies           int
	SortingModeShows            int
	ResolutionPreferenceMovies  int
	ResolutionPreferenceShows   int
	PercentageAdditionalSeeders int

	CustomProviderTimeoutEnabled bool
	CustomProviderTimeout        int

	InternalDNSEnabled  bool
	InternalDNSSkipIPv6 bool

	InternalProxyEnabled     bool
	InternalProxyLogging     bool
	InternalProxyLoggingBody 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