Add setting for lyric providers and add more providers

Fixes #335
This commit is contained in:
Jonas Kvinge
2020-05-08 18:35:36 +02:00
parent 6ef69f6b32
commit f44ce49ea7
39 changed files with 1834 additions and 105 deletions

View File

@@ -49,9 +49,10 @@
#include <QSslSocket>
#include <QDateTime>
LocalRedirectServer::LocalRedirectServer(const bool https, QObject *parent)
LocalRedirectServer::LocalRedirectServer(QObject *parent)
: QTcpServer(parent),
https_(https),
https_(false),
port_(0),
socket_(nullptr)
{}
@@ -232,7 +233,7 @@ bool LocalRedirectServer::Listen() {
if (https_) {
if (!GenerateCertificate()) return false;
}
if (!listen(QHostAddress::LocalHost)) {
if (!listen(QHostAddress::LocalHost, port_)) {
error_ = errorString();
return false;
}