Skip to content

Icon doesn't always load correctly #27

@ImDevinC

Description

@ImDevinC

https://github.com/StreamController/OBSPlugin/blob/main/actions/InputMute/InputMuteBase.py#L130
https://github.com/StreamController/OBSPlugin/blob/main/actions/InputMute/InputMuteBase.py#L169
https://github.com/StreamController/OBSPlugin/blob/main/actions/InputMute/InputMuteBase.py#L172

This line here calls set_media and also provides a media_path variable, however in the set_media function, there is already logic for the media_path and this leads to a duplicate parameter which causes this error:

  File "/home/ronan/.var/app/com.core447.StreamController/data/plugins/com_core447_OBSPlugin/actions/InputMute/InputMuteBase.py", line 59, in set_media
    super().set_media(media_path=self.image_path_map.get(self.current_state), *args, **kwargs)
                                 │    │              │   │    │                │       └ {'media_path': '/home/ronan/.var/app/com.core447.StreamController/data/plugins/com_core447_OBSPlugin/assets/error.png'}
                                 │    │              │   │    │                └ ()
                                 │    │              │   │    └ <property object at 0x7fb57d5b11c0>
                                 │    │              │   └ <actions.InputMute.SetInputMute.SetInputMute object at 0x7fb519d66630>
                                 │    │              └ <method 'get' of 'dict' objects>
                                 │    └ {<State.UNKNOWN: -1>: '/home/ronan/.var/app/com.core447.StreamController/data/plugins/com_core447_OBSPlugin/assets/error.png'...
                                 └ <actions.InputMute.SetInputMute.SetInputMute object at 0x7fb519d66630>

TypeError: src.backend.PluginManager.ActionCore.ActionCore.set_media() got multiple values for keyword argument 'media_path'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions