Commit Graph

26 Commits

Author SHA1 Message Date
Adam Harvey 906170400e
cffi: always return config values as JSON
Previously, string JSON values were special cased to be provided as
bare strings, which means that CFFI modules have to either know what
type each value is expected to be, or use a heuristic such as trying to
decode and then treating the value as a string on failure.

Instead, we can always return JSON, and let the downstream consumer
handle deserialising the value into whatever type is expected.

The new behaviour is gated on a new ABI version 2: modules built against
version 1 will continue to get the old behaviour.
2025-03-05 17:11:26 -08:00
Alexis Rouillard ca3877d0b8
Merge pull request #3325 from williamwith4ms/escape_&_in_mediaplayer.py
fix: display titles with '&' correctly
2024-07-02 22:34:10 +02:00
williammmm 02eaa8b46e
escape & in mediaplayer 2024-06-03 19:46:55 +01:00
Benjamin Voisin f3ed5ca5af
🌱 update default config with a menu example 2024-05-28 18:18:51 +02:00
柳芭老爹 231d6972d7
fix: custom module mediaplayer doesn't respect argument (#3198)
fix custom module mediaplayer which doesn't consider  --exclude argument on player appear
2024-05-03 08:47:41 +02:00
Jonny Tischbein 3d31e9a22a
mediaplayer: add exclude player option 2024-02-23 18:41:45 +01:00
Crom (Thibaut CHARLES) 02c64f3f1e
Moved all waybar info into a single struct 2023-10-24 20:16:50 +02:00
Crom (Thibaut CHARLES) d86059016e
Send update dispatcher though FFI 2023-10-24 20:16:50 +02:00
Crom (Thibaut CHARLES) 088ca6b963
Added cffi/* module for third-party advanced modules 2023-10-24 20:16:50 +02:00
zjeffer 6dc33fe88f Mediaplayer improvements 2023-07-23 13:55:25 +02:00
Maëlys Bras de fer d5112678c3
mediaplayer.py: Exit properly on SIGPIPE 2021-11-27 23:07:26 +01:00
Elyes HAOUAS f18eb71ad7 Fix spelling errors
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
2021-10-02 18:13:17 +02:00
Torstein Husebø 34a710cce3 Fix typos 2020-02-03 10:40:26 +01:00
Adrien Lemaire db1136d647
feat: show title if artist isn't available 2020-01-01 13:50:29 +09:00
Sibren Vasse 7e9207d75c fix(custom): ignore selected_player if not defined. Fixes #419 2019-07-31 11:53:59 +02:00
Alex be2fa743eb refactor(custon): hide on empty text 2019-05-27 00:05:29 +02:00
Sibren Vasse 0f689b733d feat(custom): make spotify module generic
Set class via json attribute
Choose icon via alt attribute
2019-03-31 16:20:43 +02:00
Sibren Vasse 618fe80670 chore(custom): fix typo and quoting style 2019-03-31 16:10:42 +02:00
Daniel Voogsgerd 095294389b feat(Spotify): Add option to select player 2019-03-27 22:27:23 +01:00
Daniel Voogsgerd 3bcf3befec chore(Spotify): Add logging for events 2019-03-27 17:28:02 +01:00
Daniel Voogsgerd db69b449ba feat(Spotify): Add logger 2019-03-27 16:37:59 +01:00
Daniel Voogsgerd ed358ef024 feat(Spotify): Add argument parser 2019-03-27 16:33:15 +01:00
Daniel Voogsgerd faa79ea216 refactor: Add main method / Clean global scope 2019-03-27 16:10:36 +01:00
Sibren Vasse a0cdef569b fix(custom): fix conditional statement 2018-11-26 19:35:03 +01:00
Sibren Vasse c4c0c01a2f
feat(custom): event based mediaplayer script 2018-11-23 12:08:15 +01:00
Alexis 9d4048983d refactor: remove useless tmp variable 2018-11-01 09:27:00 +01:00