@@ -16,9 +16,9 @@ func TestDownloadSong(t *testing.T) {
1616 }
1717 }
1818
19- fmt .Println ("YOUTUBE_COOKIE : " , os .Getenv ("YOUTUBE_COOKIE " ))
19+ fmt .Println ("youtube_cookie : " , os .Getenv ("youtube_cookie " ))
2020
21- song , err := DownloadSong ("https://www.youtube.com/watch?v=d3J3uJpCgos&list=PLwCTYY94JxbZHrJ-anoUuFkNHSFQqe438&index=6&pp=gAQBiAQB8AUB" , os .Getenv ("YOUTUBE_COOKIE " ))
21+ song , err := DownloadSong ("https://www.youtube.com/watch?v=d3J3uJpCgos&list=PLwCTYY94JxbZHrJ-anoUuFkNHSFQqe438&index=6&pp=gAQBiAQB8AUB" , os .Getenv ("youtube_cookie " ))
2222 if err != nil {
2323 t .Errorf ("Expected no error, got: %v" , err )
2424 }
@@ -33,7 +33,7 @@ func TestDownloadSong(t *testing.T) {
3333}
3434
3535func TestDownloadSongError (t * testing.T ) {
36- song , err := DownloadSong ("https://www.youtube.com/watch?v=" , os .Getenv ("YOUTUBE_COOKIE " ))
36+ song , err := DownloadSong ("https://www.youtube.com/watch?v=" , os .Getenv ("youtube_cookie " ))
3737 if err == nil {
3838 t .Errorf ("Expected error, got nil" )
3939 }
@@ -44,7 +44,7 @@ func TestDownloadSongError(t *testing.T) {
4444}
4545
4646func TestDownloadSongAlreadyExists (t * testing.T ) {
47- song , err := DownloadSong ("https://www.youtube.com/watch?v=d3J3uJpCgos&list=PLwCTYY94JxbZHrJ-anoUuFkNHSFQqe438&index=6&pp=gAQBiAQB8AUB" , os .Getenv ("YOUTUBE_COOKIE " ))
47+ song , err := DownloadSong ("https://www.youtube.com/watch?v=d3J3uJpCgos&list=PLwCTYY94JxbZHrJ-anoUuFkNHSFQqe438&index=6&pp=gAQBiAQB8AUB" , os .Getenv ("youtube_cookie " ))
4848 if err != nil {
4949 return
5050 }
0 commit comments