From ded8496439c0a1bfa2d244470cbd99113b8e84be Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Tue, 13 Oct 2020 13:49:22 +0200 Subject: Port to PyQt5. --- nephilim/mpclient.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'nephilim/mpclient.py') diff --git a/nephilim/mpclient.py b/nephilim/mpclient.py index f3fc24a..12934d1 100644 --- a/nephilim/mpclient.py +++ b/nephilim/mpclient.py @@ -15,8 +15,8 @@ # along with Nephilim. If not, see . # -from PyQt4 import QtCore, QtNetwork -from PyQt4.QtCore import pyqtSignal as Signal, pyqtSlot as Slot +from PyQt5 import QtCore, QtNetwork +from PyQt5.QtCore import pyqtSignal as Signal, pyqtSlot as Slot import logging import os.path @@ -122,6 +122,10 @@ class MPClient(QtCore.QObject): Changes when db_updated() signal is emitted. """ db = None + """ + A list of Song objects representing current playlist + """ + #playlist = None # SIGNALS connect_changed = Signal(bool) @@ -165,6 +169,7 @@ class MPClient(QtCore.QObject): self.status = MPDStatus() self.cur_song = Song() self.db = {} + #self.playlist = [] self.outputs = [] self.urlhandlers = [] @@ -536,8 +541,6 @@ class MPClient(QtCore.QObject): self.consume_changed.emit(self.status['consume']) if status['xfade'] != self.status['xfade']: self.crossfade_changed.emit(self.status['xfade']) - if status['playlist'] != self.status['playlist']: - self.playlist_changed.emit() if status['songid'] != self.status['songid']: self._command('currentsong', callback = self._update_cur_song) -- cgit v1.2.3