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 Jul 9, 2018
1 parent e46ca16 commit 2688603
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions qqmusicsong.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ void qqMusicSong::htmlGot()
while(tmpArray.count()>0)
{
tmpObj=tmpArray.first().toObject();
singerName=singerName+QString("-")+tmpObj["name"].toString();
singerName=singerName+QString("/")+tmpObj["name"].toString();
tmpArray.removeFirst();
qDebug()<<singerName;
}
Expand Down Expand Up @@ -132,7 +132,7 @@ void qqMusicSong::picDownloaded()
tagtmp=new ID3tag(mp3FileName);
connect(tagtmp,SIGNAL(finished()),this,SLOT(tagDone()));
tagtmp->setTitle(songName);
tagtmp->setArtist(singerName);
tagtmp->setArtist(singerName.replace("-","/"));
tagtmp->setAlbum(albumName);
tagtmp->setPic(QString("tmp.jpg"));
tagtmp->doJob();
Expand Down Expand Up @@ -178,9 +178,9 @@ void qqMusicSong::downloadSong()
{
getSongLink();
if(songNameType==2)
mp3FileName=mp3Dir+QString("/")+singerName+QString("-")+songName;
mp3FileName=mp3Dir+QString("/")+singerName.replace("/","-")+QString("-")+songName;
else
mp3FileName=mp3Dir+QString("/")+songName+QString("-")+singerName;
mp3FileName=mp3Dir+QString("/")+songName+QString("-")+singerName.replace("/","-");
switch (songQuality) {
case 1:
mp3FileName=mp3FileName+QString("-128")+".mp3";
Expand Down

0 comments on commit 2688603

Please sign in to comment.