mirror of
https://github.com/clementine-player/Clementine
synced 2025-01-31 03:27:40 +01:00
Fix building without spotify support.
This commit is contained in:
parent
0b795841d5
commit
369650dbef
@ -1,11 +1,15 @@
|
||||
#include "songresolver.h"
|
||||
|
||||
#include "config.h"
|
||||
#include "core/logging.h"
|
||||
#include "core/song.h"
|
||||
#include "internet/internetmodel.h"
|
||||
#include "internet/spotifyservice.h"
|
||||
#include "libraryresolver.h"
|
||||
|
||||
#ifdef HAVE_SPOTIFY
|
||||
#include "internet/spotifyservice.h"
|
||||
#include "spotifyresolver.h"
|
||||
#endif
|
||||
|
||||
SongResolver::SongResolver(LibraryBackendInterface* library, QObject* parent)
|
||||
: QObject(parent),
|
||||
@ -14,7 +18,9 @@ SongResolver::SongResolver(LibraryBackendInterface* library, QObject* parent)
|
||||
resolved_(false) {
|
||||
// Register in the order they should be checked.
|
||||
RegisterResolver(new LibraryResolver(library));
|
||||
#ifdef HAVE_SPOTIFY
|
||||
RegisterResolver(new SpotifyResolver(InternetModel::Service<SpotifyService>()->server()));
|
||||
#endif
|
||||
}
|
||||
|
||||
SongResolver::~SongResolver() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user