mirror of
https://git.sr.ht/~joren/streamrip-go
synced 2026-07-27 23:42:28 +02:00
feat: add beatport provider
This commit is contained in:
@@ -25,6 +25,7 @@ type ConfigData struct {
|
||||
Tidal TidalConfig `toml:"tidal"`
|
||||
Deezer DeezerConfig `toml:"deezer"`
|
||||
Yandex YandexConfig `toml:"yandex"`
|
||||
Beatport BeatportConfig `toml:"beatport"`
|
||||
Soundcloud SoundcloudConfig `toml:"soundcloud"`
|
||||
Youtube YoutubeConfig `toml:"youtube"`
|
||||
Database DatabaseConfig `toml:"database"`
|
||||
@@ -84,6 +85,16 @@ type YandexConfig struct {
|
||||
UserID string `toml:"user_id"`
|
||||
}
|
||||
|
||||
type BeatportConfig struct {
|
||||
Quality int `toml:"quality"`
|
||||
VariousArtistsThreshold int `toml:"various_artists_threshold"`
|
||||
Username string `toml:"username"`
|
||||
Password string `toml:"password"`
|
||||
AccessToken string `toml:"access_token"`
|
||||
RefreshToken string `toml:"refresh_token"`
|
||||
TokenExpiry int64 `toml:"token_expiry"`
|
||||
}
|
||||
|
||||
type SoundcloudConfig struct {
|
||||
Quality int `toml:"quality"`
|
||||
ClientID string `toml:"client_id"`
|
||||
@@ -250,6 +261,10 @@ func DefaultConfigData() ConfigData {
|
||||
Yandex: YandexConfig{
|
||||
Quality: 2,
|
||||
},
|
||||
Beatport: BeatportConfig{
|
||||
Quality: 3,
|
||||
VariousArtistsThreshold: 3,
|
||||
},
|
||||
Soundcloud: SoundcloudConfig{
|
||||
Quality: 0,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user