package config var ( // Debug debug mode Debug bool // Version show version Version bool // InfoOnly Information only mode InfoOnly bool // Cookie http cookies Cookie string // Playlist download playlist Playlist bool // Refer use specified Referrer Refer string // Stream select specified stream to download Stream string // OutputPath output file path OutputPath string // OutputName output file name OutputName string // ExtractedData print extracted data ExtractedData bool // ChunkSizeMB HTTP chunk size for downloading (in MB) ChunkSizeMB int // UseAria2RPC Use Aria2 RPC to download UseAria2RPC bool // Aria2Token Aria2 RPC Token Aria2Token string // Aria2Addr Aria2 Address (default "localhost:6800") Aria2Addr string // Aria2Method Aria2 Method (default "http") Aria2Method string // ThreadNumber The number of download thread (only works for multiple-parts video) ThreadNumber int // File URLs file path File string // ItemStart Define the starting item of a playlist or a file input ItemStart int // ItemEnd Define the ending item of a playlist or a file input ItemEnd int // Items Define wanted items from a file or playlist. Separated by commas like: 1,5,6,8-10 Items string // Caption download captions Caption bool // YoukuCcode youku ccode YoukuCcode string // YoukuCkey youku ckey YoukuCkey string // YoukuPassword youku password YoukuPassword string // RetryTimes how many times to retry when the download failed RetryTimes int ) // FakeHeaders fake http headers var FakeHeaders = map[string]string{ "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8", "Accept-Charset": "UTF-8,*;q=0.5", "Accept-Encoding": "gzip,deflate,sdch", "Accept-Language": "en-US,en;q=0.8", "User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.81 Safari/537.36", }