From 1f7017f3d0980f21c18b59d22d5b55b561ec9ed8 Mon Sep 17 00:00:00 2001 From: Niko Storni Date: Tue, 7 May 2019 22:07:44 +0200 Subject: [PATCH] videos never published should not be processed instead published --- sources/youtubeVideo.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sources/youtubeVideo.go b/sources/youtubeVideo.go index fc24c7c..c803efb 100644 --- a/sources/youtubeVideo.go +++ b/sources/youtubeVideo.go @@ -294,7 +294,7 @@ func (v *YoutubeVideo) Sync(daemon *jsonrpc.Client, params SyncParams, existingV v.maxVideoSize = int64(params.MaxVideoSize) * 1024 * 1024 v.maxVideoLength = params.MaxVideoLength v.lbryChannelID = params.ChannelID - if reprocess { + if reprocess && existingVideoData != nil && existingVideoData.Published { summary, err := v.reprocess(daemon, params, existingVideoData) return summary, err } @@ -302,7 +302,6 @@ func (v *YoutubeVideo) Sync(daemon *jsonrpc.Client, params SyncParams, existingV } func (v *YoutubeVideo) downloadAndPublish(daemon *jsonrpc.Client, params SyncParams) (*SyncSummary, error) { - //download and thumbnail can be done in parallel err := v.download() if err != nil { return nil, errors.Prefix("download error", err)