mirror of
https://git.sr.ht/~joren/streamrip-go
synced 2026-06-17 15:05:39 +02:00
feat yandex desktop downloads
This commit is contained in:
@@ -24,6 +24,7 @@ type ConfigData struct {
|
||||
Qobuz QobuzConfig `toml:"qobuz"`
|
||||
Tidal TidalConfig `toml:"tidal"`
|
||||
Deezer DeezerConfig `toml:"deezer"`
|
||||
Yandex YandexConfig `toml:"yandex"`
|
||||
Soundcloud SoundcloudConfig `toml:"soundcloud"`
|
||||
Youtube YoutubeConfig `toml:"youtube"`
|
||||
Database DatabaseConfig `toml:"database"`
|
||||
@@ -77,6 +78,12 @@ type DeezerConfig struct {
|
||||
RefreshToken string `toml:"refresh_token"`
|
||||
}
|
||||
|
||||
type YandexConfig struct {
|
||||
Quality int `toml:"quality"`
|
||||
AccessToken string `toml:"access_token"`
|
||||
UserID string `toml:"user_id"`
|
||||
}
|
||||
|
||||
type SoundcloudConfig struct {
|
||||
Quality int `toml:"quality"`
|
||||
ClientID string `toml:"client_id"`
|
||||
@@ -240,6 +247,9 @@ func DefaultConfigData() ConfigData {
|
||||
Quality: 2,
|
||||
LowerQualityIfNotAvailable: true,
|
||||
},
|
||||
Yandex: YandexConfig{
|
||||
Quality: 2,
|
||||
},
|
||||
Soundcloud: SoundcloudConfig{
|
||||
Quality: 0,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user