Skip to content

Commit 1c84b36

Browse files
thurstonsandmxpv
authored andcommitted
skip unreleased premiere videos
1 parent 0dfc8f1 commit 1c84b36

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pkg/builder/youtube.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,11 @@ func (yt *YouTubeBuilder) queryVideoDescriptions(ctx context.Context, playlist m
301301
image = yt.selectThumbnail(snippet.Thumbnails, feed.Quality, videoID)
302302
)
303303

304+
// Skip unreleased Premiere videos
305+
if snippet.LiveBroadcastContent == "upcoming" {
306+
continue
307+
}
308+
304309
// Parse date added to playlist / publication date
305310
dateStr := ""
306311
playlistItem, ok := playlist[video.Id]

0 commit comments

Comments
 (0)