From 7ff1a009da32c05ffd8bd395a673c33ebe21b381 Mon Sep 17 00:00:00 2001 From: Niko Storni Date: Fri, 14 Jan 2022 18:49:02 +0100 Subject: [PATCH] remove unused params --- downloader/downloader.go | 2 +- ytapi/ytapi.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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,