make sure channel name starts with @

This commit is contained in:
Alex Grintsvayg 2017-12-11 13:50:15 -05:00
parent d425c8073b
commit 1ee27af8ce
No known key found for this signature in database
GPG key ID: AEB3F089F86A22B5

View file

@ -35,6 +35,10 @@ func ytsync(cmd *cobra.Command, args []string) {
lbryChannelName := ""
if len(args) > 2 {
lbryChannelName = args[2]
if string(lbryChannelName[0]) != "@" {
log.Errorln("LBRY channel name must start with an @")
return
}
}
if stopOnError && maxTries != defaultMaxTries {