Skip to content

Commit

Permalink
this is actually necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
nikooo777 committed Aug 16, 2022
1 parent 68132c6 commit ea3315d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ytapi/ytapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down

0 comments on commit ea3315d

Please sign in to comment.