Add tidal cover provider

This commit is contained in:
Jonas Kvinge
2019-04-14 16:40:05 +02:00
parent 36dccc8157
commit 1ad163aac3
20 changed files with 404 additions and 23 deletions

View File

@@ -35,6 +35,7 @@
#include <QJsonObject>
#include <QJsonArray>
#include "core/application.h"
#include "core/closure.h"
#include "core/network.h"
#include "core/logging.h"
@@ -47,7 +48,7 @@ const char *LastFmCoverProvider::kUrl = "https://ws.audioscrobbler.com/2.0/";
const char *LastFmCoverProvider::kApiKey = "211990b4c96782c05d1536e7219eb56e";
const char *LastFmCoverProvider::kSecret = "80fd738f49596e9709b1bf9319c444a8";
LastFmCoverProvider::LastFmCoverProvider(QObject *parent) : CoverProvider("last.fm", true, parent), network_(new NetworkAccessManager(this)) {}
LastFmCoverProvider::LastFmCoverProvider(Application *app, QObject *parent) : CoverProvider("last.fm", true, app, parent), network_(new NetworkAccessManager(this)) {}
bool LastFmCoverProvider::StartSearch(const QString &artist, const QString &album, int id) {