Skip to content

Commit

Permalink
fix: custom module mediaplayer doesn't respect argument (#3198)
Browse files Browse the repository at this point in the history
fix custom module mediaplayer which doesn't consider  --exclude argument on player appear
  • Loading branch information
stanly0726 authored May 3, 2024
1 parent 50476ed commit 231d697
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions resources/custom_modules/mediaplayer.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@ def on_metadata_changed(self, player, metadata, _=None):

def on_player_appeared(self, _, player):
logger.info(f"Player has appeared: {player.name}")
if player.name in self.excluded_player:
logger.debug(
"New player appeared, but it's in exclude player list, skipping")
return
if player is not None and (self.selected_player is None or player.name == self.selected_player):
self.init_player(player)
else:
Expand Down

0 comments on commit 231d697

Please sign in to comment.