2020-07-27 21:42:45 +02:00
|
|
|
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)
|
2020-07-27 21:42:45 +02:00
|
|
|
if err != nil {
|
|
|
|
logrus.Error(err)
|
|
|
|
}
|
|
|
|
for _, id := range videoIDs {
|
|
|
|
println(id)
|
|
|
|
}
|
|
|
|
}
|