jgierer12 / pocket-casts-linux

⚠️ Currently not maintained ⚠️ - Electron wrapper around the Pocket Casts web app with support for MPRIS (media controls)
MIT License
11 stars 4 forks source link

Throws warnings in playerctl #1

Closed samhh closed 5 years ago

samhh commented 5 years ago

Hi there!

I use a script to echo the currently playing media in my bar and noticed that it doesn't work whenever this app is open. I figured out it's because of the warnings/errors being thrown when calling playerctl status:

(playerctl:15451): GLib-GIO-WARNING **: 16:36:27.412: Received property Rate with type y does not match expected type d in the expected interface

(playerctl:15451): GLib-GIO-WARNING **: 16:36:27.412: Received property Volume with type y does not match expected type d in the expected interface

(playerctl:15451): GLib-GIO-WARNING **: 16:36:27.412: Received property Position with type y does not match expected type x in the expected interface

(playerctl:15451): GLib-GIO-WARNING **: 16:36:27.413: Received property MinimumRate with type y does not match expected type d in the expected interface

(playerctl:15451): GLib-GIO-WARNING **: 16:36:27.413: Received property MaximumRate with type y does not match expected type d in the expected interface
Paused

This happens regardless of whether the app is playing or paused, and does not happen when the app is closed (i.e. cmus does not give me these errors).

Cheers!

jgierer12 commented 5 years ago

Hi, thanks for reporting!

I'll need to investigate why those warnings are thrown, it might be an upstream issue with emersion/mpris-service. It just got a major version bump and claims to fix many issues, so it may simply be a matter of upgrading that lib to 2.0.0.

jgierer12 commented 5 years ago

Fixed in #2; Upgrading mpris-service to 2.0.0 got rid of the warnings. Released in v1.1.0.

samhh commented 5 years ago

Works perfectly, thank you! :100: