From b2406d2cbed23c0f2a8b7be3f76a4a1ce7339174 Mon Sep 17 00:00:00 2001 From: billypom on debian Date: Mon, 24 Mar 2025 19:58:02 -0400 Subject: [PATCH] readme --- README.md | 1 + main.py | 15 ++++++--------- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index fd3c7d7..46d63e6 100644 --- a/README.md +++ b/README.md @@ -55,5 +55,6 @@ config.ini db/ - automatic "radio" based on artist or genre - search bar, full text search on song, artist, album - when table is focused, start typing to match against the primary sort column +- improve audio visualizer - see Renoise - "installer" - put files in /opt? script to install and uninstall... eh - .deb package? diff --git a/main.py b/main.py index cbea15d..2991140 100644 --- a/main.py +++ b/main.py @@ -49,10 +49,6 @@ from components import ( ExportPlaylistWindow, ) -# Create ui.py file from Qt Designer -# pyuic5 ui.ui -o ui.py - - # good help with signals slots in threads # https://stackoverflow.com/questions/52993677/how-do-i-setup-signals-and-slots-in-pyqt-with-qthreads-in-both-directions @@ -140,6 +136,12 @@ class ApplicationWindow(QMainWindow, Ui_MainWindow): super(ApplicationWindow, self).__init__() global stopped stopped = False + # Config + self.config: ConfigParser = ConfigParser() + self.cfg_file = ( + Path(user_config_dir(appname="musicpom", appauthor="billypom")) + / "config.ini" + ) # Multithreading stuff... self.threadpool = QThreadPool() # UI @@ -154,11 +156,6 @@ class ApplicationWindow(QMainWindow, Ui_MainWindow): self.current_song_metadata: ID3 | dict | None = None self.current_song_album_art: bytes | None = None self.album_art_scene: QGraphicsScene = QGraphicsScene() - self.config: ConfigParser = ConfigParser() - self.cfg_file = ( - Path(user_config_dir(appname="musicpom", appauthor="billypom")) - / "config.ini" - ) self.config.read(self.cfg_file) self.player: QMediaPlayer = QMediaPlayer() # Audio player object self.probe: QAudioProbe = QAudioProbe() # Gets audio data