Skip to content

Commit 77c43cf

Browse files
committed
Temporarily disabled playlist downloading, changed shortcut for Clear.
1 parent 4dc3094 commit 77c43cf

File tree

3 files changed

+4
-9
lines changed

3 files changed

+4
-9
lines changed

images/.directory

Lines changed: 0 additions & 4 deletions
This file was deleted.

youtubedl.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ void YoutubeDL::on_url_textChanged(const QString &arg1) {
8181
// Get video info
8282
QString program = "youtube-dl";
8383
QStringList arguments;
84-
arguments <<"--get-thumbnail"<<"--get-title"<<"--get-description" << arg1;
84+
arguments <<"--get-thumbnail"<<"--get-title"<<"--get-description" << "--no-playlist" << arg1;
8585
info = new QProcess(this);
8686
info->start(program, arguments);
8787

@@ -185,10 +185,9 @@ void YoutubeDL::on_downloadButton_clicked()
185185
if (ui->keepVideoCheckBox->isChecked())
186186
arguments << "-k";
187187
}
188-
arguments << "-o" << ui->path->text()+"/%(title)s.%(ext)s" << ui->url->text();
189-
} else {
190-
arguments << "-o" << ui->path->text()+"/%(title)s.%(ext)s" << ui->url->text();
191188
}
189+
arguments << "-o" << ui->path->text()+"/%(title)s.%(ext)s" << "--no-playlist" << ui->url->text();
190+
192191
download = new QProcess(this);
193192
download->start(program, arguments);
194193
QObject::connect(download, SIGNAL(readyReadStandardOutput()), this, SLOT(printOutput()));

youtubedl.ui

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@
461461
<string>Clear</string>
462462
</property>
463463
<property name="shortcut">
464-
<string>Del</string>
464+
<string>Ctrl+Del</string>
465465
</property>
466466
</action>
467467
</widget>

0 commit comments

Comments
 (0)