This commit is contained in:
Alex Grintsvayg 2020-07-27 14:49:37 -04:00
parent 843303301a
commit edbb22fcf0
No known key found for this signature in database
GPG key ID: AEB3F089F86A22B5
2 changed files with 2 additions and 2 deletions

View file

@ -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,

View file

@ -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