Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
z52c authored Jun 17, 2018
1 parent 7ae1850 commit 51e3cea
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions qqmusicsong.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ void qqMusicSong::htmlGot()
picUrl=QString(ALBUMPICLINKHEAD)+albumMid+QString(ALBUMPICLINKTAIL);
qDebug()<<picUrl;
songName=obj["name"].toString();
songName.remove("\\");
singerName.remove("/");
qDebug()<<songName;
tmpObj=obj["file"].toObject();
sizeape=tmpObj["size_ape"].toInt();
Expand All @@ -79,17 +81,19 @@ void qqMusicSong::htmlGot()
tmpArray=obj["singer"].toArray();
tmpObj=tmpArray.first().toObject();
singerName=tmpObj["name"].toString();
singerName.remove("\\");
singerName.remove("/");
qDebug()<<singerName;
tmpArray.removeFirst();
while(tmpArray.count()>0)
{
tmpObj=tmpArray.first().toObject();
singerName=singerName+QString("/")+tmpObj["name"].toString();
singerName=singerName+QString("-")+tmpObj["name"].toString();
tmpArray.removeFirst();
qDebug()<<singerName;
}

// singerName.remove("\\");

file.close();
downloadSong();
}
Expand Down

0 comments on commit 51e3cea

Please sign in to comment.