summaryrefslogtreecommitdiff
path: root/tidal_dl_ng/ui
diff options
context:
space:
mode:
authorRobert Honz <exislow+github@gmail.com>2024-12-15 23:35:10 +0100
committerRobert Honz <exislow+github@gmail.com>2024-12-15 23:35:10 +0100
commit5768edacc57fd29bf2ef182cb9db312d4aebb468 (patch)
treecb5ec1765386c3e08bf90fa82103341c1c8bb1d3 /tidal_dl_ng/ui
parent62c32f19a4bbf708e6330f3c89813de1c1883ad1 (diff)
downloadtidal-dl-ng-5768edacc57fd29bf2ef182cb9db312d4aebb468.tar.gz
✨ Multithreaded downloads implemented (for Playlists, Albums etc.). Fixes #180
Diffstat (limited to 'tidal_dl_ng/ui')
-rw-r--r--tidal_dl_ng/ui/dialog_settings.py25
-rw-r--r--tidal_dl_ng/ui/dialog_settings.ui30
2 files changed, 53 insertions, 2 deletions
diff --git a/tidal_dl_ng/ui/dialog_settings.py b/tidal_dl_ng/ui/dialog_settings.py
index d3d2401..945af92 100644
--- a/tidal_dl_ng/ui/dialog_settings.py
+++ b/tidal_dl_ng/ui/dialog_settings.py
@@ -27,7 +27,7 @@ class Ui_DialogSettings:
def setupUi(self, DialogSettings):
if not DialogSettings.objectName():
DialogSettings.setObjectName("DialogSettings")
- DialogSettings.resize(640, 705)
+ DialogSettings.resize(640, 767)
sizePolicy = QSizePolicy(QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Expanding)
sizePolicy.setHorizontalStretch(100)
sizePolicy.setVerticalStretch(100)
@@ -293,6 +293,27 @@ class Ui_DialogSettings:
self.verticalLayout_8.addLayout(self.horizontalLayout_9)
+ self.horizontalLayout_11 = QHBoxLayout()
+ self.horizontalLayout_11.setObjectName("horizontalLayout_11")
+ self.l_downloads_concurrent_max = QLabel(self.gb_numbers)
+ self.l_downloads_concurrent_max.setObjectName("l_downloads_concurrent_max")
+
+ self.horizontalLayout_11.addWidget(self.l_downloads_concurrent_max)
+
+ self.l_icon_downloads_concurrent_max = QLabel(self.gb_numbers)
+ self.l_icon_downloads_concurrent_max.setObjectName("l_icon_downloads_concurrent_max")
+
+ self.horizontalLayout_11.addWidget(self.l_icon_downloads_concurrent_max)
+
+ self.sb_downloads_concurrent_max = QSpinBox(self.gb_numbers)
+ self.sb_downloads_concurrent_max.setObjectName("sb_downloads_concurrent_max")
+ self.sb_downloads_concurrent_max.setMinimum(1)
+ self.sb_downloads_concurrent_max.setMaximum(5)
+
+ self.horizontalLayout_11.addWidget(self.sb_downloads_concurrent_max)
+
+ self.verticalLayout_8.addLayout(self.horizontalLayout_11)
+
self.lv_main.addWidget(self.gb_numbers)
self.gb_path = QGroupBox(DialogSettings)
@@ -563,6 +584,8 @@ class Ui_DialogSettings:
self.gb_numbers.setTitle(QCoreApplication.translate("DialogSettings", "Numbers", None))
self.l_album_track_num_pad_min.setText(QCoreApplication.translate("DialogSettings", "TextLabel", None))
self.l_icon_album_track_num_pad_min.setText(QCoreApplication.translate("DialogSettings", "TextLabel", None))
+ self.l_downloads_concurrent_max.setText(QCoreApplication.translate("DialogSettings", "TextLabel", None))
+ self.l_icon_downloads_concurrent_max.setText(QCoreApplication.translate("DialogSettings", "TextLabel", None))
self.gb_path.setTitle(QCoreApplication.translate("DialogSettings", "Path", None))
self.l_icon_download_base_path.setText(QCoreApplication.translate("DialogSettings", "TextLabel", None))
self.l_download_base_path.setText(QCoreApplication.translate("DialogSettings", "TextLabel", None))
diff --git a/tidal_dl_ng/ui/dialog_settings.ui b/tidal_dl_ng/ui/dialog_settings.ui
index bff04c7..d81701a 100644
--- a/tidal_dl_ng/ui/dialog_settings.ui
+++ b/tidal_dl_ng/ui/dialog_settings.ui
@@ -7,7 +7,7 @@
<x>0</x>
<y>0</y>
<width>640</width>
- <height>705</height>
+ <height>767</height>
</rect>
</property>
<property name="sizePolicy">
@@ -386,6 +386,34 @@
</item>
</layout>
</item>
+ <item>
+ <layout class="QHBoxLayout" name="horizontalLayout_11">
+ <item>
+ <widget class="QLabel" name="l_downloads_concurrent_max">
+ <property name="text">
+ <string>TextLabel</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QLabel" name="l_icon_downloads_concurrent_max">
+ <property name="text">
+ <string>TextLabel</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QSpinBox" name="sb_downloads_concurrent_max">
+ <property name="minimum">
+ <number>1</number>
+ </property>
+ <property name="maximum">
+ <number>5</number>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </item>
</layout>
</widget>
</item>