Skip to content

Commit

Permalink
remove pointless if statements
Browse files Browse the repository at this point in the history
  • Loading branch information
vorlie committed Aug 15, 2024
1 parent fe54132 commit 8ebb9a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/discordIntegration.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def update_presence(self, song_title, artist_name, large_image_text, small_image
large_text=large_image_text,
small_image=small_image_key,
small_text=small_image_text,
buttons=buttons if youtube_id else None
buttons=buttons
)
discord_logger.info(f"Presence updated: {song_title} by {artist_name}; Buttons: {buttons}")
else:
Expand All @@ -92,7 +92,7 @@ def update_presence(self, song_title, artist_name, large_image_text, small_image
small_text=small_image_text,
start=start_time,
end=end_time,
buttons=buttons if youtube_id else None
buttons=buttons
)
discord_logger.info(f"Presence updated: {song_title} by {artist_name}; Buttons: {buttons}; Start time: {start_time}; End time: {end_time}")
except Exception as e:
Expand Down

0 comments on commit 8ebb9a8

Please sign in to comment.