Skip to content

Commit

Permalink
- Fix incorrect status emoji mapping (#175)
Browse files Browse the repository at this point in the history
  • Loading branch information
nwithan8 authored Mar 19, 2024
1 parent fb6d508 commit ba5bb69
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion modules/discord/discord_connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,7 @@ async def update_live_voice_channels(self,
status = "Online" if plex_online else "Offline"
logging.info(f"Updating Plex Status voice channel with new status: {status}")
if self.voice_channel_settings.get(statics.KEY_PLEX_STATUS_USE_EMOJI, False):
status = self.emoji_manager.get_emoji(key=f'plex_{status.lower()}')
status = self.emoji_manager.get_emoji(key=f'{statics.KEY_STATUS}_{status.lower()}')
await self.edit_stat_voice_channel(channel_name="Plex Status",
channel_id=self.get_voice_channel_id(
key=statics.KEY_PLEX_STATUS_CHANNEL_ID),
Expand Down
4 changes: 2 additions & 2 deletions modules/emojis.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ def __init__(self) -> None:
"tracks": "🎵",
"unknown": "❓",
"status": "⏱️",
"status_online": "🟢",
"status_offline": "🔴",
f"{statics.KEY_STATUS}_online": "🟢",
f"{statics.KEY_STATUS}_offline": "🔴",
"current_streams": "🌊",
"current_transcodes": "💦",
"local_bandwidth": "🏠",
Expand Down
1 change: 1 addition & 0 deletions modules/statics.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
KEY_LAN_BANDWIDTH_CHANNEL_ID = "lan_bandwidth_channel_id"
KEY_REMOTE_BANDWIDTH_CHANNEL_ID = "remote_bandwidth_channel_id"
KEY_PLEX_STATUS_CHANNEL_ID = "plex_status_channel_id"
KEY_STATUS = "status"

KEY_TIME_MANAGER = "time_settings"

Expand Down

0 comments on commit ba5bb69

Please sign in to comment.