This commit is contained in:
billypom on debian 2025-03-24 19:58:02 -04:00
parent f552fd9828
commit b2406d2cbe
2 changed files with 7 additions and 9 deletions

View File

@ -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?

15
main.py
View File

@ -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