You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chunksize=flag.Int("chunksize", googleapi.DefaultUploadChunkSize, "size (in bytes) of each upload chunk. A zero value will cause all data to be uploaded in a single request")
53
-
notifySubscribers=flag.Bool("notify", true, "notify channel subscribers of new video. Specify '-notify=false' to disable.")
54
-
debug=flag.Bool("debug", false, "turn on verbose log output")
55
-
sendFileName=flag.Bool("sendFilename", true, "send original file name to YouTube")
35
+
typearrayFlags []string
56
36
57
-
// this is set by compile-time to match git tag
58
-
appVersionstring="unknown"
59
-
)
37
+
// String is an implementation of the flag.Value interface
38
+
func (i*arrayFlags) String() string {
39
+
returnfmt.Sprintf("%v", *i)
40
+
}
41
+
42
+
// Set is an implementation of the flag.Value interface
43
+
func (i*arrayFlags) Set(valuestring) error {
44
+
*i=append(*i, value)
45
+
returnnil
46
+
}
60
47
61
48
funcmain() {
62
49
63
50
varerrerror
64
51
52
+
varplaylistIDsarrayFlags
53
+
54
+
flag.Var(&playlistIDs, "playlistID", "playlist ID to add the video to. Can be used multiple times")
55
+
filename:=flag.String("filename", "", "video filename. Can be a URL. Read from stdin with '-'")
56
+
thumbnail:=flag.String("thumbnail", "", "thumbnail filename. Can be a URL")
57
+
caption:=flag.String("caption", "", "caption filename. Can be a URL")
58
+
title:=flag.String("title", "", "video title")
59
+
description:=flag.String("description", "uploaded by youtubeuploader", "video description")
chunksize:=flag.Int("chunksize", googleapi.DefaultUploadChunkSize, "size (in bytes) of each upload chunk. A zero value will cause all data to be uploaded in a single request")
72
+
notifySubscribers:=flag.Bool("notify", true, "notify channel subscribers of new video. Specify '-notify:=false' to disable.")
73
+
debug:=flag.Bool("debug", false, "turn on verbose log output")
74
+
sendFileName:=flag.Bool("sendFilename", true, "send original file name to YouTube")
0 commit comments