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{