]> jfr.im git - erebus.git/commitdiff
make listenbrainz format configurable
authorJohn Runyon <redacted>
Sat, 19 Aug 2023 05:34:57 +0000 (23:34 -0600)
committerJohn Runyon <redacted>
Sat, 19 Aug 2023 05:34:57 +0000 (23:34 -0600)
modules/listenbrainz.py

index c7ae6c9c7a26a2a0e0799edd3a37065e9da23ade..cb46d70a897f1e8e87f8bd6e43ddeae4f6e2194b 100644 (file)
@@ -55,7 +55,7 @@ def listenbrainz(bot, user, chan, realtarget, *args):
        player = 'unknown player'
        if 'media_player' in track['additional_info']: player = track['additional_info']['media_player']
        elif 'listening_from' in track['additional_info']: player = track['additional_info']['listening_from']
-       return "%(user)s is playing %(track)s by %(artist)s (%(album)s) (from %(player)s)" % {
+       return lib.parent.cfg.get('listenbrainz', 'format', "%(user)s is playing %(track)s by %(artist)s (%(album)s) (from %(player)s)") % {
                'user': username,
                'track': track['track_name'],
                'artist': track['artist_name'],