mirror of
https://git.sr.ht/~joren/streamrip-go
synced 2026-06-17 15:05:39 +02:00
add CLI parity flags and expand provider support
This brings the Go CLI closer to upstream behavior with global flag handling and clearer resolve failures, while adding Tidal video downloads plus initial Deezer and SoundCloud no-account flows for broader end-to-end coverage.
This commit is contained in:
@@ -9,6 +9,13 @@ import (
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestDownloaderHasNoClientTimeout(t *testing.T) {
|
||||
d := NewWithOptions(true, false)
|
||||
if d.http.Timeout != 0 {
|
||||
t.Fatalf("http timeout = %v, want 0 (no global timeout)", d.http.Timeout)
|
||||
}
|
||||
}
|
||||
|
||||
func TestDownloaderFile(t *testing.T) {
|
||||
ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, _ *http.Request) {
|
||||
_, _ = w.Write([]byte("abc123"))
|
||||
|
||||
Reference in New Issue
Block a user