do not attempt upgrading channels no longer in our control
This commit is contained in:
parent
bc72d2f1c4
commit
c9e713e9df
1 changed files with 14 additions and 9 deletions
|
@ -422,15 +422,20 @@ func (s *Sync) ensureChannelOwnership() error {
|
||||||
ThumbnailURL: &thumbnailURL,
|
ThumbnailURL: &thumbnailURL,
|
||||||
}
|
}
|
||||||
if channelUsesOldMetadata {
|
if channelUsesOldMetadata {
|
||||||
c, err = s.daemon.ChannelUpdate(s.lbryChannelID, jsonrpc.ChannelUpdateOptions{
|
if s.transferState <= 1 {
|
||||||
ClearTags: util.PtrToBool(true),
|
c, err = s.daemon.ChannelUpdate(s.lbryChannelID, jsonrpc.ChannelUpdateOptions{
|
||||||
ClearLocations: util.PtrToBool(true),
|
ClearTags: util.PtrToBool(true),
|
||||||
ClearLanguages: util.PtrToBool(true),
|
ClearLocations: util.PtrToBool(true),
|
||||||
ChannelCreateOptions: jsonrpc.ChannelCreateOptions{
|
ClearLanguages: util.PtrToBool(true),
|
||||||
ClaimCreateOptions: claimCreateOptions,
|
ChannelCreateOptions: jsonrpc.ChannelCreateOptions{
|
||||||
CoverURL: bannerURL,
|
ClaimCreateOptions: claimCreateOptions,
|
||||||
},
|
CoverURL: bannerURL,
|
||||||
})
|
},
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
logUtils.SendInfoToSlack("%s (%s) has a channel with old metadata but isn't in our control anymore. Ignoring", s.LbryChannelName, s.lbryChannelID)
|
||||||
|
return nil
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
c, err = s.daemon.ChannelCreate(s.LbryChannelName, channelBidAmount, jsonrpc.ChannelCreateOptions{
|
c, err = s.daemon.ChannelCreate(s.LbryChannelName, channelBidAmount, jsonrpc.ChannelCreateOptions{
|
||||||
ClaimCreateOptions: claimCreateOptions,
|
ClaimCreateOptions: claimCreateOptions,
|
||||||
|
|
Loading…
Reference in a new issue