fix pointer issue
This commit is contained in:
parent
8d849b8f06
commit
5b9846bcca
2 changed files with 5 additions and 4 deletions
|
@ -119,7 +119,7 @@ func transferVideos(s *Sync) error {
|
||||||
} else {
|
} else {
|
||||||
videoStatus.IsTransferred = util.PtrToBool(len(result.Outputs) != 0)
|
videoStatus.IsTransferred = util.PtrToBool(len(result.Outputs) != 0)
|
||||||
}
|
}
|
||||||
log.Infof("TRANSFERRED %t", videoStatus.IsTransferred)
|
log.Infof("TRANSFERRED %t", *videoStatus.IsTransferred)
|
||||||
statusErr := s.APIConfig.MarkVideoStatus(videoStatus)
|
statusErr := s.APIConfig.MarkVideoStatus(videoStatus)
|
||||||
if statusErr != nil {
|
if statusErr != nil {
|
||||||
return errors.Prefix(statusErr.Error(), updateError)
|
return errors.Prefix(statusErr.Error(), updateError)
|
||||||
|
@ -135,6 +135,7 @@ func transferVideos(s *Sync) error {
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func transferChannel(s *Sync) error {
|
func transferChannel(s *Sync) error {
|
||||||
channelClaim, err := s.daemon.ClaimSearch(nil, &s.lbryChannelID, nil, nil)
|
channelClaim, err := s.daemon.ClaimSearch(nil, &s.lbryChannelID, nil, nil)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
@ -775,7 +775,7 @@ func (s *Sync) startWorker(workerNum int) {
|
||||||
"Error in daemon: Cannot publish empty file",
|
"Error in daemon: Cannot publish empty file",
|
||||||
"Error extracting sts from embedded url response",
|
"Error extracting sts from embedded url response",
|
||||||
"Unable to extract signature tokens",
|
"Unable to extract signature tokens",
|
||||||
"Client.Timeout exceeded while awaiting headers)",
|
"Client.Timeout exceeded while awaiting headers",
|
||||||
"the video is too big to sync, skipping for now",
|
"the video is too big to sync, skipping for now",
|
||||||
"video is too long to process",
|
"video is too long to process",
|
||||||
"no compatible format available for this video",
|
"no compatible format available for this video",
|
||||||
|
@ -784,8 +784,8 @@ func (s *Sync) startWorker(workerNum int) {
|
||||||
"the video must be republished as we can't get the right size",
|
"the video must be republished as we can't get the right size",
|
||||||
"HTTP Error 403",
|
"HTTP Error 403",
|
||||||
"giving up after 0 fragment retries",
|
"giving up after 0 fragment retries",
|
||||||
"download error: ERROR: Sorry about that",
|
"Sorry about that",
|
||||||
"download error: ERROR: This video is not available",
|
"This video is not available",
|
||||||
}
|
}
|
||||||
if util.SubstringInSlice(err.Error(), errorsNoRetry) {
|
if util.SubstringInSlice(err.Error(), errorsNoRetry) {
|
||||||
log.Println("This error should not be retried at all")
|
log.Println("This error should not be retried at all")
|
||||||
|
|
Loading…
Add table
Reference in a new issue