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:
@@ -174,7 +174,7 @@ func isDeezerHost(host string) bool {
|
||||
|
||||
func isSupportedMedia(mediaType string) bool {
|
||||
switch mediaType {
|
||||
case "album", "track", "playlist", "artist", "label":
|
||||
case "album", "track", "playlist", "artist", "label", "video":
|
||||
return true
|
||||
default:
|
||||
return false
|
||||
|
||||
@@ -38,6 +38,17 @@ func TestTidalTrackURL(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestTidalVideoURL(t *testing.T) {
|
||||
url := "https://tidal.com/browse/video/59727844"
|
||||
result := Parse(url)
|
||||
if result == nil {
|
||||
t.Fatalf("expected parsed url")
|
||||
}
|
||||
if result.Source != "tidal" || result.MediaType != "video" || result.ID != "59727844" {
|
||||
t.Fatalf("unexpected parse result: %+v", result)
|
||||
}
|
||||
}
|
||||
|
||||
func TestDeezerTrackURL(t *testing.T) {
|
||||
url := "https://www.deezer.com/track/4195713"
|
||||
result := Parse(url)
|
||||
|
||||
Reference in New Issue
Block a user