options

package
v0.0.0-...-1e93fd1 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2018 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultTcasRetryInterval = 60 // TcasRetryInterval
View Source
var DefaultTcasRetryTimeoutMinute = 5 // TcasRetryTimeoutMinute

Functions

func Help

func Help(verbose ...bool)

func LoadNicoAccount

func LoadNicoAccount(alias string) (user, pass, session string, err error)

func LoadYoutubeApiKey

func LoadYoutubeApiKey() (key string, err error)

func SetNicoLogin

func SetNicoLogin(hash, user, pass string) (err error)

func SetNicoSession

func SetNicoSession(hash, session string) (err error)

func SetYoutubeApiKey

func SetYoutubeApiKey(key string) (err error)

Types

type Option

type Option struct {
	Command                string
	NicoLiveId             string
	NicoStatusHTTPS        bool
	NicoSession            string
	NicoLoginAlias         string
	NicoRtmpMaxConn        int
	NicoRtmpOnly           bool
	NicoRtmpIndex          map[int]bool
	NicoHlsOnly            bool
	NicoLoginOnly          bool
	NicoTestTimeout        int
	TcasId                 string
	TcasRetry              bool
	TcasRetryTimeoutMinute int // 再試行を終了する時間(初回終了または録画終了からの時間「分」)
	TcasRetryInterval      int // 再試行を行うまでの待ち時間
	YoutubeId              string
	ConfFile               string // deprecated
	ConfPass               string // deprecated
	ZipFile                string
	DBFile                 string
	NicoHlsPort            int
	NicoLimitBw            int
	NicoTsStart            float64
	NicoFormat             string
	NicoFastTs             bool
	NicoUltraFastTs        bool
	NicoAutoConvert        bool
	NicoAutoDeleteDBMode   int  // 0:削除しない 1:mp4が分割されなかったら削除 2:分割されても削除
	NicoDebug              bool // デバッグ情報の記録
	ConvExt                string
	ExtractChunks          bool
	NicoForceResv          bool // 終了番組の上書きタイムシフト予約
	YtNoStreamlink         bool
	YtNoYoutubeDl          bool
	NicoSkipHb             bool // コメント出力時に/hbコマンドを出さない
	HttpRootCA             string
	HttpSkipVerify         bool
	HttpProxy              string
}

func ParseArgs

func ParseArgs() (opt Option)

Jump to

Keyboard shortcuts

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