Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct { Url string `short:"u" long:"url" description:"Url from website. Start with http[s]://" required:"false"` Out string `short:"o" long:"out" description:"The output file will be place to here(dir/filename). Default: current dir" required:"false"` ResourceType string `short:"t" long:"type" description:"The resource type you want to get [auto/audio/video/all]" required:"false" default:"auto"` MetaOnly bool `short:"m" long:"metaOnly" description:"Output meta info only. Would not download audio" required:"false"` InfoFormat string `long:"infoFormat" description:"Support plain/json. Default: plain" required:"false"` AddMediaTag bool `long:"addMediaTag" description:"Add media tag into file from meta information" required:"false"` LogLevel string `short:"l" long:"logLevel" description:"Support: silence/error/warn/info/debug. Default: info" required:"false"` Search Search `group:"Search Options"` IsDir bool }
func CheckAndParse ¶
type Search ¶ added in v0.2.0
type Search struct { Keyword string `` /* 195-byte string literal not displayed */ SongName string `long:"searchSongName" description:"song name" required:"false"` Artist string `long:"searchArtist" description:"artist name" required:"false"` Album string `long:"searchAlbum" description:"album name" required:"false"` Type string `long:"searchType" description:"Support: song, Default: song" required:"false"` Sources string `` /* 176-byte string literal not displayed */ ExcludeSources string `long:"excludeSource" description:"Search not in the specific source, separate with comma" required:"false"` SourcesWillBeSearch []string }
nolint
Click to show internal directories.
Click to hide internal directories.