make sure channel name starts with @
This commit is contained in:
parent
d425c8073b
commit
1ee27af8ce
1 changed files with 4 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue