Fix:Syncing when media is open in audio player and playing on another device #984

- Local playback session IDs have been updated to UUIDs instead of prefixing local_play_
This commit is contained in:
advplyr 2023-12-15 16:04:58 -06:00
parent dd66042766
commit 7412d0899f
5 changed files with 13 additions and 15 deletions

View file

@ -164,7 +164,7 @@ extension LocalLibraryItem {
func getPlaybackSession(episode: PodcastEpisode?) -> PlaybackSession {
let localEpisodeId = episode?.id
let sessionId = "play_local_\(UUID().uuidString)"
let sessionId = UUID().uuidString
// Get current progress from local media
let mediaProgressId = (localEpisodeId != nil) ? "\(self.id)-\(localEpisodeId!)" : self.id