From 557c1ca8dc36b52cd26a72ed0462a3483383c560 Mon Sep 17 00:00:00 2001 From: Alex Grintsvayg Date: Wed, 11 Oct 2017 12:45:56 -0400 Subject: [PATCH] fix claim address, add readme --- README.md | 10 ++++++++++ ytsync.go | 4 ++-- 2 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 README.md 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") }