Lint
This commit is contained in:
@@ -101,7 +101,7 @@ class SoundOff(QObject):
|
||||
|
||||
@pyqtSlot(QMediaPlayer.MediaStatus)
|
||||
def mediaStatus(self, status: QMediaPlayer.MediaStatus) -> None:
|
||||
#print(f"mediaStatus: {status}")
|
||||
# print(f"mediaStatus: {status}")
|
||||
if status == QMediaPlayer.MediaStatus.LoadedMedia:
|
||||
player: Optional[QMediaPlayer] = cast(QMediaPlayer, self.sender())
|
||||
assert player is not None
|
||||
@@ -110,7 +110,7 @@ class SoundOff(QObject):
|
||||
|
||||
@pyqtSlot(QMediaPlayer.PlaybackState)
|
||||
def playbackState(self, state: QMediaPlayer.PlaybackState) -> None:
|
||||
#print(f"playbackState: {state}")
|
||||
# print(f"playbackState: {state}")
|
||||
return
|
||||
|
||||
#
|
||||
@@ -164,7 +164,7 @@ class SoundOff(QObject):
|
||||
continue
|
||||
self._storage[player] = QByteArray(storage)
|
||||
crypto.addData(self._storage[player])
|
||||
#print(player, crypto.result().toHex())
|
||||
# print(player, crypto.result().toHex())
|
||||
crypto.reset()
|
||||
self._buffer[player] = QBuffer(self._storage[player])
|
||||
url = reply.request().url()
|
||||
@@ -172,5 +172,5 @@ class SoundOff(QObject):
|
||||
player.setPosition(0)
|
||||
if player.mediaStatus() == QMediaPlayer.MediaStatus.LoadedMedia:
|
||||
player.play()
|
||||
#print("play")
|
||||
# print("play")
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user