minor
This commit is contained in:
parent
a5dce58f61
commit
51504a1bf1
2 changed files with 10 additions and 8 deletions
|
@ -1,10 +1,10 @@
|
|||
# Current YT Sync Process
|
||||
|
||||
- start daemon with clean `.lbryum` dir
|
||||
- `wallet_list` to get an address
|
||||
- `wallet_unused_address` 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`
|
||||
- run `lbry ytsync YOUTUBE_KEY YOUTUBE_CHANNEL_ID LBRY_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
|
||||
- after sync is done, stop daemon and move `.lbryum` dir somewhere safe
|
||||
- mark content as synced in doc
|
||||
|
|
10
ytsync.go
10
ytsync.go
|
@ -24,8 +24,10 @@ import (
|
|||
)
|
||||
|
||||
const (
|
||||
redisHashKey = "ytsync"
|
||||
redisSyncedVal = "t"
|
||||
redisHashKey = "ytsync"
|
||||
redisSyncedVal = "t"
|
||||
channelClaimAmount = 0.01
|
||||
publishAmount = 0.01
|
||||
)
|
||||
|
||||
// Sync stores the options that control how syncing happens
|
||||
|
@ -185,7 +187,7 @@ func (s *Sync) ensureChannelOwnership() error {
|
|||
return errors.New("Channel exists and we don't own it. Pick another channel.")
|
||||
}
|
||||
|
||||
_, err = s.daemon.ChannelNew(s.LbryChannelName, 0.01)
|
||||
_, err = s.daemon.ChannelNew(s.LbryChannelName, channelClaimAmount)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
@ -407,7 +409,7 @@ func (s *Sync) publish(v video, conn redis.Conn) error {
|
|||
options.ChannelName = &s.LbryChannelName
|
||||
}
|
||||
|
||||
_, err := s.daemon.Publish(v.getClaimName(), v.getFilename(), 0.01, options)
|
||||
_, err := s.daemon.Publish(v.getClaimName(), v.getFilename(), publishAmount, options)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue