diff --git a/README.md b/README.md new file mode 100644 index 0000000..6321b81 --- /dev/null +++ b/README.md @@ -0,0 +1,10 @@ +# Current YT Sync Process + +- start daemon with clean `.lbryum` dir +- `wallet_list` to get an address +- send credits to address. make sure the send is split into 50 or so txns, and that there are enough credits to publish all the videos +- wait for credits to arrive and be confirmed +- run `lbry ytsync YOUTUBE_KEY CHANNEL_ID CHANNEL_NAME --max-tries=5` + - `max-tries` will retry errors that you will undoubtedly get +- after sync is done, stop daemon and move `.lbryum`dir somewhere safe +- mark content synced in doc diff --git a/ytsync.go b/ytsync.go index ccbd3e0..3c37d74 100644 --- a/ytsync.go +++ b/ytsync.go @@ -72,8 +72,8 @@ func (s *Sync) Go() error { } else if addresses == nil || len(*addresses) == 0 { return errors.New("could not find an address in wallet") } - claimAddress := (*addresses)[0] - if claimAddress == "" { + s.claimAddress = (*addresses)[0] + if s.claimAddress == "" { return errors.New("found blank claim address") }