From ea3315d1d6ca1e1a876d477606958a2ce9574f8c Mon Sep 17 00:00:00 2001 From: Niko Storni Date: Tue, 16 Aug 2022 02:14:33 +0200 Subject: [PATCH] this is actually necessary --- ytapi/ytapi.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ytapi/ytapi.go b/ytapi/ytapi.go index 5c7d7e5..18ff40c 100644 --- a/ytapi/ytapi.go +++ b/ytapi/ytapi.go @@ -217,6 +217,13 @@ func getVideos(channelID string, videoIDs []string, stopChan stop.Chan, ipPool * default: } + state, err := config.VideoState(videoID) + if err != nil { + return nil, errors.Err(err) + } + if state == "published" { + continue + } video, err := downloader.GetVideoInformation(videoID, stopChan, ipPool) if err != nil { errSDK := config.MarkVideoStatus(shared.VideoStatus{