ytsync/downloader/downloader_test.go

20 lines
429 B
Go
Raw Normal View History

package downloader
import (
"testing"
"github.com/sirupsen/logrus"
)
func TestRun(t *testing.T) {
//args := []string{"--skip-download", "https://www.youtube.com/c/Electroboom", "--get-id", "--flat-playlist"}
//videoIDs, err := GetPlaylistVideoIDs("Electroboom")
2020-07-27 21:57:19 +02:00
videoIDs, err := GetPlaylistVideoIDs("UCJ0-OtVpF0wOKEqT2Z1HEtA", 50)
if err != nil {
logrus.Error(err)
}
for _, id := range videoIDs {
println(id)
}
}