summaryrefslogtreecommitdiff
path: root/tidal_dl_ng/ui
diff options
context:
space:
mode:
authorRobert Honz <exislow+github@gmail.com>2024-03-29 10:54:04 +0100
committerRobert Honz <exislow+github@gmail.com>2024-03-29 11:17:30 +0100
commit77ef9ef75ecd96efe888fcf1499e761f48aea330 (patch)
tree9ed9eb2faba5a1457154a484203da1681f18929b /tidal_dl_ng/ui
parent58d97afbc274b588b1503df71f20a36a58401ef7 (diff)
downloadtidal-dl-ng-77ef9ef75ecd96efe888fcf1499e761f48aea330.tar.gz
✨ Can explicitly set `ffmpeg` path.
Diffstat (limited to 'tidal_dl_ng/ui')
-rw-r--r--tidal_dl_ng/ui/dialog_settings.py38
-rw-r--r--tidal_dl_ng/ui/dialog_settings.ui54
2 files changed, 92 insertions, 0 deletions
diff --git a/tidal_dl_ng/ui/dialog_settings.py b/tidal_dl_ng/ui/dialog_settings.py
index eb358e1..b276b62 100644
--- a/tidal_dl_ng/ui/dialog_settings.py
+++ b/tidal_dl_ng/ui/dialog_settings.py
@@ -364,6 +364,24 @@ class Ui_DialogSettings:
self.verticalLayout_2.addLayout(self.lh_path_fmt_mix)
+ self.lh_path_binary_ffmpeg = QHBoxLayout()
+ self.lh_path_binary_ffmpeg.setObjectName("lh_path_binary_ffmpeg")
+ self.l_icon_path_binary_ffmpeg = QLabel(self.gb_path)
+ self.l_icon_path_binary_ffmpeg.setObjectName("l_icon_path_binary_ffmpeg")
+ sizePolicy4.setHeightForWidth(self.l_icon_path_binary_ffmpeg.sizePolicy().hasHeightForWidth())
+ self.l_icon_path_binary_ffmpeg.setSizePolicy(sizePolicy4)
+
+ self.lh_path_binary_ffmpeg.addWidget(self.l_icon_path_binary_ffmpeg)
+
+ self.l_path_binary_ffmpeg = QLabel(self.gb_path)
+ self.l_path_binary_ffmpeg.setObjectName("l_path_binary_ffmpeg")
+ sizePolicy3.setHeightForWidth(self.l_path_binary_ffmpeg.sizePolicy().hasHeightForWidth())
+ self.l_path_binary_ffmpeg.setSizePolicy(sizePolicy3)
+
+ self.lh_path_binary_ffmpeg.addWidget(self.l_path_binary_ffmpeg)
+
+ self.verticalLayout_2.addLayout(self.lh_path_binary_ffmpeg)
+
self.horizontalLayout_2.addLayout(self.verticalLayout_2)
self.verticalLayout = QVBoxLayout()
@@ -432,6 +450,23 @@ class Ui_DialogSettings:
self.verticalLayout.addLayout(self.horizontalLayout_8)
+ self.horizontalLayout_31 = QHBoxLayout()
+ self.horizontalLayout_31.setObjectName("horizontalLayout_31")
+ self.le_path_binary_ffmpeg = QLineEdit(self.gb_path)
+ self.le_path_binary_ffmpeg.setObjectName("le_path_binary_ffmpeg")
+ sizePolicy2.setHeightForWidth(self.le_path_binary_ffmpeg.sizePolicy().hasHeightForWidth())
+ self.le_path_binary_ffmpeg.setSizePolicy(sizePolicy2)
+ self.le_path_binary_ffmpeg.setDragEnabled(True)
+
+ self.horizontalLayout_31.addWidget(self.le_path_binary_ffmpeg)
+
+ self.pb_path_binary_ffmpeg = QPushButton(self.gb_path)
+ self.pb_path_binary_ffmpeg.setObjectName("pb_path_binary_ffmpeg")
+
+ self.horizontalLayout_31.addWidget(self.pb_path_binary_ffmpeg)
+
+ self.verticalLayout.addLayout(self.horizontalLayout_31)
+
self.horizontalLayout_2.addLayout(self.verticalLayout)
self.horizontalLayout_2.setStretch(1, 50)
@@ -488,6 +523,9 @@ class Ui_DialogSettings:
self.l_format_playlist.setText(QCoreApplication.translate("DialogSettings", "TextLabel", None))
self.l_icon_format_mix.setText(QCoreApplication.translate("DialogSettings", "TextLabel", None))
self.l_format_mix.setText(QCoreApplication.translate("DialogSettings", "TextLabel", None))
+ self.l_icon_path_binary_ffmpeg.setText(QCoreApplication.translate("DialogSettings", "TextLabel", None))
+ self.l_path_binary_ffmpeg.setText(QCoreApplication.translate("DialogSettings", "TextLabel", None))
self.pb_download_base_path.setText(QCoreApplication.translate("DialogSettings", "...", None))
+ self.pb_path_binary_ffmpeg.setText(QCoreApplication.translate("DialogSettings", "...", None))
# retranslateUi
diff --git a/tidal_dl_ng/ui/dialog_settings.ui b/tidal_dl_ng/ui/dialog_settings.ui
index acdb1cf..4dfa38c 100644
--- a/tidal_dl_ng/ui/dialog_settings.ui
+++ b/tidal_dl_ng/ui/dialog_settings.ui
@@ -518,6 +518,36 @@
</item>
</layout>
</item>
+ <item>
+ <layout class="QHBoxLayout" name="lh_path_binary_ffmpeg">
+ <item>
+ <widget class="QLabel" name="l_icon_path_binary_ffmpeg">
+ <property name="sizePolicy">
+ <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="text">
+ <string>TextLabel</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QLabel" name="l_path_binary_ffmpeg">
+ <property name="sizePolicy">
+ <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="text">
+ <string>TextLabel</string>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </item>
</layout>
</item>
<item>
@@ -588,6 +618,30 @@
</item>
</layout>
</item>
+ <item>
+ <layout class="QHBoxLayout" name="horizontalLayout_3">
+ <item>
+ <widget class="QLineEdit" name="le_path_binary_ffmpeg">
+ <property name="sizePolicy">
+ <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="dragEnabled">
+ <bool>true</bool>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QPushButton" name="pb_path_binary_ffmpeg">
+ <property name="text">
+ <string>...</string>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </item>
</layout>
</item>
</layout>