Fix mistake
This commit is contained in:
parent
17fe201473
commit
04e272d9bc
@ -537,9 +537,6 @@ void TidalService::SearchFinished(QNetworkReply *reply, int id) {
|
|||||||
// This was a tracks search
|
// This was a tracks search
|
||||||
if (!fetchalbums_) {
|
if (!fetchalbums_) {
|
||||||
Song song = ParseSong(0, value);
|
Song song = ParseSong(0, value);
|
||||||
//requests_song_.insert(song.id(), song);
|
|
||||||
//songs_requested_++;
|
|
||||||
//GetStreamURL(0, song.id());
|
|
||||||
songs_ << song;
|
songs_ << song;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@ -662,9 +659,6 @@ void TidalService::GetAlbumFinished(QNetworkReply *reply, int search_id, int alb
|
|||||||
QString album_full(QString("%1 - (Disc %2)").arg(song.album()).arg(song.disc()));
|
QString album_full(QString("%1 - (Disc %2)").arg(song.album()).arg(song.disc()));
|
||||||
song.set_album(album_full);
|
song.set_album(album_full);
|
||||||
}
|
}
|
||||||
//requests_song_.insert(song.id(), song);
|
|
||||||
//songs_requested_++;
|
|
||||||
//GetStreamURL(album_id, song.id());
|
|
||||||
songs_ << song;
|
songs_ << song;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -717,8 +711,6 @@ Song TidalService::ParseSong(const int album_id_requested, const QJsonValue &val
|
|||||||
|
|
||||||
int song_id = json_obj["id"].toInt();
|
int song_id = json_obj["id"].toInt();
|
||||||
|
|
||||||
if (requests_song_.contains(song_id)) return requests_song_.value(song_id);
|
|
||||||
|
|
||||||
QString title = json_obj["title"].toString();
|
QString title = json_obj["title"].toString();
|
||||||
QString urlstr = json_obj["url"].toString();
|
QString urlstr = json_obj["url"].toString();
|
||||||
int track = json_obj["trackNumber"].toInt();
|
int track = json_obj["trackNumber"].toInt();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user