File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ import (
1414
1515 librespot "github.com/devgianlu/go-librespot"
1616 "github.com/devgianlu/go-librespot/mpris"
17+ "github.com/devgianlu/go-librespot/playplay"
1718
1819 "github.com/devgianlu/go-librespot/apresolve"
1920 "github.com/devgianlu/go-librespot/player"
@@ -110,6 +111,12 @@ func NewApp(cfg *Config) (app *App, err error) {
110111 app .clientToken = cfg .ClientToken
111112 }
112113
114+ if cfg .FlacEnabled && ! playplay .Plugin .IsSupported () {
115+ // FLAC decryption keys are available only with the PlayPlay DRM implementation.
116+ // Using PlayPlay might get you banned by Spotify.
117+ return nil , fmt .Errorf ("FLAC playback requires a PlapPlay implementation" )
118+ }
119+
113120 return app , nil
114121}
115122
You can’t perform that action at this time.
0 commit comments