Added downloading from spotify.

TODO: Two playing options - old stream and new download
This commit is contained in:
BarsTiger
2022-12-12 23:04:17 +02:00
parent 9d2bc0aeb6
commit 9dae35a537
15 changed files with 351 additions and 78 deletions

View File

@@ -850,6 +850,16 @@ QListWidget:item:selected {
</layout>
</widget>
</item>
<item>
<widget class="QCheckBox" name="use_original_streaming_method_check">
<property name="text">
<string>Use direct stream method (cuts last second of audio, not recommended if playing short files)</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<spacer name="audio_devices_settings_tab_spacer">
<property name="orientation">
@@ -914,6 +924,93 @@ QListWidget:item:selected {
</item>
</widget>
</item>
<item>
<widget class="QLabel" name="api_keys_settings_label">
<property name="text">
<string>API keys settings</string>
</property>
</widget>
</item>
<item alignment="Qt::AlignTop">
<widget class="QTabWidget" name="api_keys_settings_tabs_widget">
<widget class="QWidget" name="spotify_api_settings_tab">
<attribute name="title">
<string>Spotify</string>
</attribute>
<layout class="QVBoxLayout" name="spotify_api_settings_tab_lay">
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item>
<widget class="QLabel" name="spotify_client_id_label">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Minimum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>50</height>
</size>
</property>
<property name="text">
<string>Client id</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="spotify_client_id_box">
<property name="minimumSize">
<size>
<width>0</width>
<height>30</height>
</size>
</property>
<property name="placeholderText">
<string>5f573c9620494bae87890c0f08a60293</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="spotify_client_secret_label">
<property name="text">
<string>Client secret</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="spotify_client_secret_box">
<property name="minimumSize">
<size>
<width>0</width>
<height>30</height>
</size>
</property>
<property name="placeholderText">
<string>212476d9b0f3472eaa762d90b19b0ba8</string>
</property>
</widget>
</item>
</layout>
</widget>
<widget class="QWidget" name="pusher_settings_tab">
<attribute name="title">
<string>Pusher</string>
</attribute>
</widget>
</widget>
</item>
<item>
<spacer name="general_settings_tab_spacer">
<property name="orientation">