From edbb22fcf0d06169481e2cdd35e515657204bcec Mon Sep 17 00:00:00 2001 From: Alex Grintsvayg Date: Mon, 27 Jul 2020 14:49:37 -0400 Subject: [PATCH] rename --- manager/ytsync.go | 2 +- ytapi/ytapi.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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