mirror of
https://github.com/strawberrymusicplayer/strawberry
synced 2025-01-01 19:18:28 +01:00
Fix parsing Tidal track duration with Qt 6
This commit is contained in:
parent
0d820eda12
commit
276a34bb66
@ -1034,7 +1034,7 @@ QString TidalRequest::ParseSong(Song &song, const QJsonObject &json_obj, const Q
|
|||||||
|
|
||||||
QVariant q_duration = json_duration.toVariant();
|
QVariant q_duration = json_duration.toVariant();
|
||||||
quint64 duration = 0;
|
quint64 duration = 0;
|
||||||
if (q_duration.isValid() && (q_duration.type() == QVariant::Int || q_duration.type() == QVariant::Double)) {
|
if (q_duration.isValid()) {
|
||||||
duration = q_duration.toLongLong() * kNsecPerSec;
|
duration = q_duration.toLongLong() * kNsecPerSec;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Loading…
Reference in New Issue
Block a user