Skip to content

Config for "Play" results in error, config screen doesn't show #10

@MrSurly

Description

@MrSurly
  1. Configure a button for Media, Play
  2. Click on action name under "actions" on the left to configure
  3. config doesn't show

Logs this error:

Traceback (most recent call last):
  File "/app/bin/StreamController/src/windows/mainWindow/elements/Sidebar/elements/ActionManager.py", line 666, in on_click
    self.sidebar.action_configurator.load_for_action(self.action_object, self.index)
  File "/app/bin/StreamController/src/windows/mainWindow/elements/Sidebar/elements/ActionConfigurator.py", line 81, in load_for_action
    self.config_group.load_for_action(action)
  File "/app/bin/StreamController/src/windows/mainWindow/elements/Sidebar/elements/ActionConfigurator.py", line 165, in load_for_action
    config_rows = action.get_config_rows()
                  ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/epoulsen/.var/app/com.core447.StreamController/data/plugins/com_core447_MediaPlugin/MediaAction.py", line 42, in get_config_rows
    self.load_config_defaults()
  File "/home/epoulsen/.var/app/com.core447.StreamController/data/plugins/com_core447_MediaPlugin/MediaAction.py", line 62, in load_config_defaults
    self.update_player_selector()
  File "/home/epoulsen/.var/app/com.core447.StreamController/data/plugins/com_core447_MediaPlugin/MediaAction.py", line 69, in update_player_selector
    players = self.plugin_base.mc.get_player_names(remove_duplicates=True)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/epoulsen/.var/app/com.core447.StreamController/data/plugins/com_core447_MediaPlugin/MediaController.py", line 32, in get_player_names
    name = properties.Get('org.mpris.MediaPlayer2', 'Identity')
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/lib/python3.12/site-packages/dbus/proxies.py", line 141, in __call__
    return self._connection.call_blocking(self._named_service,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/lib/python3.12/site-packages/dbus/connection.py", line 634, in call_blocking
    reply_message = self.send_message_with_reply_and_block(
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions