useless flag

This commit is contained in:
Alex Grintsvayg 2017-09-19 14:43:59 -04:00
parent 1cef6ad65b
commit 09cafcba40
No known key found for this signature in database
GPG key ID: AEB3F089F86A22B5

View file

@ -44,7 +44,6 @@ var (
daemon *jsonrpc.Client
channelID string
lbryChannelName string
claimChannel bool
claimAddress string
videoDirectory string
ytAPIKey string
@ -57,7 +56,6 @@ func ytsync() error {
flag.StringVar(&ytAPIKey, "ytApiKey", "", "Youtube API key (required)")
flag.StringVar(&channelID, "channelID", "", "ID of the youtube channel to sync (required)")
flag.StringVar(&lbryChannelName, "lbryChannel", "", "Publish videos into this channel")
flag.BoolVar(&claimChannel, "claimChannel", false, "Claim channel if we do not own it")
flag.Parse()
if channelID == "" || ytAPIKey == "" {
@ -158,10 +156,6 @@ func ensureChannelOwnership() error {
return fmt.Errorf("Channel exists and we don't own it. Pick another channel.")
}
if !claimChannel {
return fmt.Errorf("Channel does not exist. Create it with -claimChannel")
}
_, err = daemon.ChannelNew(lbryChannelName, 0.01)
if err != nil {
return err