Now Playing Working
Commented some annoying mpris debugs
This commit is contained in:
parent
5c955820dd
commit
f98a82240b
3 changed files with 60 additions and 50 deletions
|
@ -37,7 +37,7 @@ export default class mpris {
|
|||
* @private
|
||||
*/
|
||||
private static runMediaEvent(type: string) {
|
||||
console.debug(`[Plugin][${this.name}] ${type}.`);
|
||||
// console.debug(`[Plugin][${this.name}] ${type}.`);
|
||||
mpris.utils.getWindow().webContents.executeJavaScript(`MusicKitInterop.${type}()`).catch(console.error)
|
||||
}
|
||||
|
||||
|
@ -188,7 +188,7 @@ export default class mpris {
|
|||
*/
|
||||
@mpris.linuxOnly
|
||||
onPlaybackStateDidChange(attributes: object): void {
|
||||
console.debug(`[Plugin][${mpris.name}] onPlaybackStateDidChange.`);
|
||||
// console.debug(`[Plugin][${mpris.name}] onPlaybackStateDidChange.`);
|
||||
mpris.updatePlayerState(attributes)
|
||||
}
|
||||
|
||||
|
@ -198,7 +198,7 @@ export default class mpris {
|
|||
*/
|
||||
@mpris.linuxOnly
|
||||
onNowPlayingItemDidChange(attributes: object): void {
|
||||
console.debug(`[Plugin][${mpris.name}] onMetadataDidChange.`);
|
||||
// console.debug(`[Plugin][${mpris.name}] onMetadataDidChange.`);
|
||||
mpris.updatePlayer(attributes);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue