From b2f28de116b611e345fe80d0a1ccc7d8d3f0c8db Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Tue, 14 May 2024 13:23:41 +1000 Subject: [PATCH] Support newer PyObjC by explicitly converting Paths to str --- src/mpd_now_playable/cocoa/now_playing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mpd_now_playable/cocoa/now_playing.py b/src/mpd_now_playable/cocoa/now_playing.py index 5bd807a..5cf1b2b 100644 --- a/src/mpd_now_playable/cocoa/now_playing.py +++ b/src/mpd_now_playable/cocoa/now_playing.py @@ -82,7 +82,7 @@ def song_to_media_item(song: Song) -> NSMutableDictionary: nowplaying_info = nothing_to_media_item() nowplaying_info[MPNowPlayingInfoPropertyMediaType] = MPNowPlayingInfoMediaTypeAudio nowplaying_info[MPNowPlayingInfoPropertyElapsedPlaybackTime] = song.elapsed - nowplaying_info[MPNowPlayingInfoPropertyExternalContentIdentifier] = song.file + nowplaying_info[MPNowPlayingInfoPropertyExternalContentIdentifier] = str(song.file) nowplaying_info[MPNowPlayingInfoPropertyPlaybackQueueCount] = song.queue_length nowplaying_info[MPNowPlayingInfoPropertyPlaybackQueueIndex] = song.queue_index nowplaying_info[MPMediaItemPropertyPersistentID] = song_to_persistent_id(song)