Skip to content

Commit

Permalink
multiple URL support added
Browse files Browse the repository at this point in the history
  • Loading branch information
samadritakarmakar committed Dec 26, 2016
1 parent 78053f4 commit 078e742
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 32 deletions.
2 changes: 1 addition & 1 deletion Qutube-dl.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.1.0, 2016-12-13T19:12:58. -->
<!-- Written by QtCreator 4.1.0, 2016-12-26T21:26:34. -->
<qtcreator>
<data>
<variable>EnvironmentId</variable>
Expand Down
5 changes: 3 additions & 2 deletions qutubedl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ void Qutubedl::on_Go_pb_clicked()
QDir open;
youtube_d_handle();

QFileDialog *d_path = new QFileDialog;
QFileDialog *d_path = new QFileDialog(this);
QString d_path_string=d_path->getExistingDirectory(this,"Save Directory", QDir::homePath());
qDebug()<<d_path_string;
open.setCurrent(d_path_string);
Expand Down Expand Up @@ -78,7 +78,8 @@ void Qutubedl::on_stop_pb_clicked()
//fetches texts entered
void Qutubedl::get_texts()
{
Url=ui->url->text();
//Url=ui->url->text();
Url=ui->url->toPlainText();
proxy=ui->prxy->text();
fmt=ui->frmt->text();
}
Expand Down
2 changes: 1 addition & 1 deletion qutubedl.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ private slots:

private:
Ui::Qutubedl *ui;
QProcess *youtube=new QProcess;
QProcess *youtube=new QProcess(this);
QString f_output;
QString f_cb;
int i=0,z=0;
Expand Down
53 changes: 25 additions & 28 deletions qutubedl.ui
Original file line number Diff line number Diff line change
Expand Up @@ -6,32 +6,15 @@
<rect>
<x>0</x>
<y>0</y>
<width>697</width>
<height>343</height>
<width>695</width>
<height>341</height>
</rect>
</property>
<property name="windowTitle">
<string>Qutubedl</string>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="1">
<widget class="QLineEdit" name="url">
<property name="text">
<string/>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QLineEdit" name="frmt">
<property name="text">
<string>18</string>
</property>
</widget>
</item>
<item row="3" column="1">
<widget class="QLineEdit" name="prxy"/>
</item>
<item row="7" column="0" colspan="2">
<item row="8" column="0" colspan="2">
<widget class="QTextBrowser" name="output_tb">
<property name="html">
<string>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
Expand All @@ -56,62 +39,76 @@ p, li { white-space: pre-wrap; }
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="QLineEdit" name="frmt">
<property name="text">
<string>18</string>
</property>
</widget>
</item>
<item row="4" column="1">
<widget class="QLineEdit" name="prxy"/>
</item>
<item row="0" column="0">
<widget class="QLabel" name="label">
<property name="text">
<string>Url:</string>
<string>Url(s):
(separated by space)</string>
</property>
</widget>
</item>
<item row="1" column="0">
<item row="2" column="0">
<widget class="QLabel" name="label_3">
<property name="text">
<string>Format Code:</string>
</property>
</widget>
</item>
<item row="3" column="0">
<item row="4" column="0">
<widget class="QLabel" name="label_2">
<property name="text">
<string>Proxy:</string>
</property>
</widget>
</item>
<item row="4" column="1" alignment="Qt::AlignHCenter">
<item row="5" column="1" alignment="Qt::AlignHCenter">
<widget class="QLabel" name="label_4">
<property name="text">
<string>eg: socks://127.0.0.1:9050/</string>
</property>
</widget>
</item>
<item row="6" column="0">
<item row="7" column="0">
<widget class="QPushButton" name="stop_pb">
<property name="text">
<string>Stop!</string>
</property>
</widget>
</item>
<item row="6" column="1">
<item row="7" column="1">
<widget class="QPushButton" name="Go_pb">
<property name="text">
<string>Go!</string>
</property>
</widget>
</item>
<item row="5" column="1">
<item row="6" column="1">
<widget class="QPushButton" name="get_fmt_pb">
<property name="text">
<string>Available Format?</string>
</property>
</widget>
</item>
<item row="5" column="0">
<item row="6" column="0">
<widget class="QPushButton" name="updt_bcknd_pb">
<property name="text">
<string>Update Backend</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QTextEdit" name="url"/>
</item>
</layout>
</widget>
<layoutdefault spacing="6" margin="11"/>
Expand Down

0 comments on commit 078e742

Please sign in to comment.