Added collab

This commit is contained in:
BarsTiger
2022-12-27 14:18:22 +02:00
parent 4507814fcd
commit b29a172bf8
17 changed files with 1150 additions and 34 deletions

View File

@@ -1,5 +1,6 @@
from gui.gui import Ui_MainWindow
from modules.config import Config
from modules.config.pusher import PusherConfig
from modules.spotify.config import SpotifyConfig
import shutil
@@ -30,6 +31,19 @@ def register_handlers(ui: Ui_MainWindow):
lambda: SpotifyConfig.update("client_secret", ui.spotify_client_secret_box.text())
)
ui.pusher_app_id_box.textChanged.connect(
lambda: PusherConfig.update("app_id", ui.pusher_app_id_box.text())
)
ui.pusher_key_box.textChanged.connect(
lambda: PusherConfig.update("key", ui.pusher_key_box.text())
)
ui.pusher_secret_box.textChanged.connect(
lambda: PusherConfig.update("secret", ui.pusher_secret_box.text())
)
ui.pusher_cluster_box.textChanged.connect(
lambda: PusherConfig.update("cluster", ui.pusher_cluster_box.text())
)
ui.use_original_streaming_method_check.stateChanged.connect(
lambda: Config.update("direct_stream", ui.use_original_streaming_method_check.isChecked())
)