Don't ignore HTTP errors when reading tags from cloud providers.
This commit is contained in:
parent
3972f939f7
commit
90bb00939b
@ -132,6 +132,12 @@ TagLib::ByteVector CloudStream::readBlock(ulong length) {
|
||||
loop.exec();
|
||||
reply->deleteLater();
|
||||
|
||||
int code = reply->attribute(QNetworkRequest::HttpStatusCodeAttribute).toInt();
|
||||
if (code >= 400) {
|
||||
qLog(Debug) << "Error retrieving url to tag:" << url_;
|
||||
return TagLib::ByteVector();
|
||||
}
|
||||
|
||||
QByteArray data = reply->readAll();
|
||||
TagLib::ByteVector bytes(data.data(), data.size());
|
||||
cursor_ += data.size();
|
||||
|
Loading…
x
Reference in New Issue
Block a user