mirror of
https://github.com/strawberrymusicplayer/strawberry
synced 2025-01-15 10:08:08 +01:00
QNetworkRequest::Http2AllowedAttribute require Qt 5.14
This commit is contained in:
parent
91b9602e12
commit
32ae3cd567
@ -83,7 +83,9 @@ bool MusixmatchCoverProvider::StartSearch(const QString &artist, const QString &
|
||||
#else
|
||||
req.setAttribute(QNetworkRequest::FollowRedirectsAttribute, true);
|
||||
#endif
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0)
|
||||
req.setAttribute(QNetworkRequest::Http2AllowedAttribute, false);
|
||||
#endif
|
||||
QNetworkReply *reply = network_->get(req);
|
||||
replies_ << reply;
|
||||
connect(reply, &QNetworkReply::finished, [=] { HandleSearchReply(reply, id, artist, album); });
|
||||
|
@ -80,7 +80,9 @@ bool MusixmatchLyricsProvider::StartSearch(const QString &artist, const QString
|
||||
#else
|
||||
req.setAttribute(QNetworkRequest::FollowRedirectsAttribute, true);
|
||||
#endif
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0)
|
||||
req.setAttribute(QNetworkRequest::Http2AllowedAttribute, false);
|
||||
#endif
|
||||
QNetworkReply *reply = network_->get(req);
|
||||
replies_ << reply;
|
||||
connect(reply, &QNetworkReply::finished, [=] { HandleSearchReply(reply, id, artist, album, title); });
|
||||
|
Loading…
Reference in New Issue
Block a user