Skip to content

Commit a19eb98

Browse files
committed
Add debug output for YouTube cookie in song download test
1 parent 81a6cf9 commit a19eb98

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

internal/music/music_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package music
22

33
import (
4+
"fmt"
45
"github.com/joho/godotenv"
56
"os"
67
"testing"
@@ -15,6 +16,8 @@ func TestDownloadSong(t *testing.T) {
1516
}
1617
}
1718

19+
fmt.Println("YOUTUBE_COOKIE: ", os.Getenv("YOUTUBE_COOKIE"))
20+
1821
song, err := DownloadSong("https://www.youtube.com/watch?v=d3J3uJpCgos&list=PLwCTYY94JxbZHrJ-anoUuFkNHSFQqe438&index=6&pp=gAQBiAQB8AUB", os.Getenv("YOUTUBE_COOKIE"))
1922
if err != nil {
2023
t.Errorf("Expected no error, got: %v", err)

0 commit comments

Comments
 (0)