diff --git a/manager/ytsync.go b/manager/ytsync.go index 956e50f..feebc37 100644 --- a/manager/ytsync.go +++ b/manager/ytsync.go @@ -985,7 +985,7 @@ func (s *Sync) enqueueYoutubeVideos() error { return err } - videos, err := ytapi.Enqueue(s.APIConfig.YoutubeAPIKey, s.YoutubeChannelID, s.syncedVideos, s.Manager.SyncFlags.QuickSync, s.Manager.videosLimit, ytapi.VideoParams{ + videos, err := ytapi.GetVideosToSync(s.APIConfig.YoutubeAPIKey, s.YoutubeChannelID, s.syncedVideos, s.Manager.SyncFlags.QuickSync, s.Manager.videosLimit, ytapi.VideoParams{ VideoDir: s.videoDirectory, S3Config: s.Manager.GetS3AWSConfig(), Grp: s.grp, diff --git a/ytapi/ytapi.go b/ytapi/ytapi.go index 942e344..a1c5d82 100644 --- a/ytapi/ytapi.go +++ b/ytapi/ytapi.go @@ -45,7 +45,7 @@ type VideoParams struct { var mostRecentlyFailedChannel string // TODO: fix this hack! -func Enqueue(apiKey, channelID string, syncedVideos map[string]sdk.SyncedVideo, quickSync bool, maxVideos int, videoParams VideoParams) ([]Video, error) { +func GetVideosToSync(apiKey, channelID string, syncedVideos map[string]sdk.SyncedVideo, quickSync bool, maxVideos int, videoParams VideoParams) ([]Video, error) { playlistID, err := PlaylistID(apiKey, channelID) if err != nil { return nil, err