From 64344d3f87146f25f3010ddbb11782af65ff4b79 Mon Sep 17 00:00:00 2001 From: gechoto <124326167+gechoto@users.noreply.github.com> Date: Sat, 11 Jan 2025 02:36:09 +0000 Subject: [PATCH] app: MusicService: use existing playbackData to recover song if possible --- app/src/main/java/com/dd3boh/outertune/playback/MusicService.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/com/dd3boh/outertune/playback/MusicService.kt b/app/src/main/java/com/dd3boh/outertune/playback/MusicService.kt index ce9eda167..8a5b38a9c 100644 --- a/app/src/main/java/com/dd3boh/outertune/playback/MusicService.kt +++ b/app/src/main/java/com/dd3boh/outertune/playback/MusicService.kt @@ -449,6 +449,7 @@ class MusicService : MediaLibraryService(), private suspend fun recoverSong(mediaId: String, playbackData: YTPlayerUtils.PlaybackData? = null) { val playbackUrl = database.format(mediaId).first()?.playbackUrl + ?: playbackData?.playbackTracking?.videostatsPlaybackUrl?.baseUrl ?: YTPlayerUtils.playerResponseForMetadata(mediaId).getOrNull()?.playbackTracking?.videostatsPlaybackUrl?.baseUrl playbackUrl?.let {