diff --git a/downloader/downloader.go b/downloader/downloader.go index fe63ed7..e9d84eb 100644 --- a/downloader/downloader.go +++ b/downloader/downloader.go @@ -50,7 +50,7 @@ func GetPlaylistVideoIDs(channelName string, maxVideos int, stopChan stop.Chan, const releaseTimeFormat = "2006-01-02, 15:04:05 (MST)" -func GetVideoInformation(videoID string, stopChan stop.Chan, ip *net.TCPAddr, pool *ip_manager.IPPool) (*ytdl.YtdlVideo, error) { +func GetVideoInformation(videoID string, stopChan stop.Chan, pool *ip_manager.IPPool) (*ytdl.YtdlVideo, error) { args := []string{ "--skip-download", "--write-info-json", diff --git a/ytapi/ytapi.go b/ytapi/ytapi.go index 7e34ac6..6aec1c3 100644 --- a/ytapi/ytapi.go +++ b/ytapi/ytapi.go @@ -223,7 +223,7 @@ func getVideos(channelID string, videoIDs []string, stopChan stop.Chan, ipPool * if state == "published" { continue } - video, err := downloader.GetVideoInformation(videoID, stopChan, nil, ipPool) + video, err := downloader.GetVideoInformation(videoID, stopChan, ipPool) if err != nil { errSDK := config.MarkVideoStatus(shared.VideoStatus{ ChannelID: channelID,