Skip to content

Commit

Permalink
Merge pull request #233 from iamasink/main
Browse files Browse the repository at this point in the history
Prevent crash with Spotify local files
  • Loading branch information
Phineas authored May 20, 2024
2 parents bc80b55 + 6851a41 commit 1f23e14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/presence/spotify.ex
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ defmodule Lanyard.Presence.Spotify do
def build_pretty_spotify(activity) when is_map(activity) do
%{
track_id: get_track_id(activity),
artist: activity.state,
artist: Map.get(activity, :state),
song: activity.details,
album: get_album_title(activity),
album_art_url: get_album_art_url(activity),
Expand Down

0 comments on commit 1f23e14

Please sign in to comment.