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 7, 2018
1 parent 1b3baf1 commit 5c8de1b
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 11 deletions.
12 changes: 7 additions & 5 deletions mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,12 @@ MainWindow::MainWindow(QWidget *parent) :
connect(_vkeyinit2,SIGNAL(status(QString)),this,SLOT(status(QString)));
connect(_vkeyinit2,SIGNAL(finished()),this,SLOT(init2Finished()));

ui->radioButtonQualityape->setEnabled(false);
ui->radioButtonQualityflac->setEnabled(false);
//ui->radioButtonQualityape->setEnabled(false);
//ui->radioButtonQualityflac->setEnabled(false);

ui->pushButtonDownload->setEnabled(false);
vkeyinit->init();
//vkeyinit->init();
_vkeyinit2->init();



Expand All @@ -54,8 +55,9 @@ void MainWindow::initFinished()

void MainWindow::init2Finished()
{
ui->radioButtonQualityape->setEnabled(true);
ui->radioButtonQualityflac->setEnabled(true);
//ui->radioButtonQualityape->setEnabled(true);
//ui->radioButtonQualityflac->setEnabled(true);
ui->pushButtonDownload->setEnabled(true);
}

void MainWindow::status(QString inString)
Expand Down
2 changes: 1 addition & 1 deletion musicDownloader.pro
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ FORMS += \
thanks.ui \
proxyform.ui

VERSION = 1.6.0
VERSION = 1.6.1

QMAKE_TARGET_PRODUCT = QQMusic&NeteaseMusicDownloader
QMAKE_TARGET_COMPANY = z52c
Expand Down
2 changes: 1 addition & 1 deletion musicDownloader.pro.user
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE QtCreatorProject>
<!-- Written by QtCreator 4.6.1, 2018-07-05T23:09:06. -->
<!-- Written by QtCreator 4.6.1, 2018-07-06T12:02:54. -->
<qtcreator>
<data>
<variable>EnvironmentId</variable>
Expand Down
8 changes: 4 additions & 4 deletions qqmusicsong.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,18 +149,18 @@ void qqMusicSong::getSongLink()
{
if(size320==0 || songQuality == 1)
{
mp3Link=QString(DOWNLOADLINKHEAD)+QString("M500")+mediaMid+QString(".mp3")+QString(DOWNLOADLINKMID)+vkey+QString(DOWNLOADLINKGUID)+guid+QString(DOWNLOADLINKTAIL);
mp3Link=QString(NDOWNLOADLINKHEAD)+QString("M500")+mediaMid+QString(".mp3")+QString(NDOWNLOADLINKMID)+vkey2+QString(NDOWNLOADLINKTAIL);
return ;
}

if(sizeape==0 || songQuality == 2)
{
mp3Link=QString(DOWNLOADLINKHEAD)+QString("M800")+mediaMid+QString(".mp3")+QString(DOWNLOADLINKMID)+vkey+QString(DOWNLOADLINKGUID)+guid+QString(DOWNLOADLINKTAIL);
mp3Link=QString(NDOWNLOADLINKHEAD)+QString("M800")+mediaMid+QString(".mp3")+QString(NDOWNLOADLINKMID)+vkey2+QString(NDOWNLOADLINKTAIL);
}

switch (songQuality) {
case 2:
mp3Link=QString(DOWNLOADLINKHEAD)+QString("M800")+mediaMid+QString(".mp3")+QString(DOWNLOADLINKMID)+vkey+QString(DOWNLOADLINKGUID)+guid+QString(DOWNLOADLINKTAIL);
mp3Link=QString(NDOWNLOADLINKHEAD)+QString("M800")+mediaMid+QString(".mp3")+QString(NDOWNLOADLINKMID)+vkey2+QString(NDOWNLOADLINKTAIL);
break;
case 3:
mp3Link=QString(NDOWNLOADLINKHEAD)+QString("F000")+mediaMid+QString(".flac")+QString(NDOWNLOADLINKMID)+vkey2+QString(NDOWNLOADLINKTAIL);
Expand All @@ -169,7 +169,7 @@ void qqMusicSong::getSongLink()
mp3Link=QString(NDOWNLOADLINKHEAD)+QString("A000")+mediaMid+QString(".ape")+QString(NDOWNLOADLINKMID)+vkey2+QString(NDOWNLOADLINKTAIL);
break;
default:
mp3Link=QString(DOWNLOADLINKHEAD)+QString("M500")+mediaMid+QString(".mp3")+QString(DOWNLOADLINKMID)+vkey+QString(DOWNLOADLINKGUID)+guid+QString(DOWNLOADLINKTAIL);
mp3Link=QString(NDOWNLOADLINKHEAD)+QString("M500")+mediaMid+QString(".mp3")+QString(NDOWNLOADLINKMID)+vkey2+QString(NDOWNLOADLINKTAIL);
break;
}
}
Expand Down

0 comments on commit 5c8de1b

Please sign in to comment.