Sitelet https://github.com/gpodder/gpodder/pull/1265
Skip to content

Fix exceptions on mpris-listener extension - #1265

Merged
auouymous merged 2 commits into
gpodder:masterfrom
tpikonen:mpris-nopos
Apr 9, 2022
Merged

auouymous merged 2 commits into
gpodder:masterfrom
tpikonen:mpris-nopos

Conversation

@tpikonen

@tpikonen tpikonen commented Apr 4, 2022

Copy link
Copy Markdown
Contributor

Some media players (notably firefox on linux) do not support / have the 'Position' property, which makes the MPRIS extension throw an exception when pause is toggled.

This patch makes the MPRIS property query functions return None when the queried properties do not exist.

Also, fix exceptions caused by log string formats, when the properties are None.

@auouymous
auouymous merged commit 93fda24 into gpodder:master Apr 9, 2022
@auouymous

Copy link
Copy Markdown
Member

LGTM, thanks for the fix.

@tpikonen
tpikonen deleted the mpris-nopos branch April 10, 2022 10:09
@tpikonen tpikonen mentioned this pull request Apr 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants