From 69a22a0324823944edb442513aebd1fc0147921d Mon Sep 17 00:00:00 2001 From: gedoor Date: Fri, 3 Sep 2021 16:23:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/io/legado/app/service/AudioPlayService.kt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/io/legado/app/service/AudioPlayService.kt b/app/src/main/java/io/legado/app/service/AudioPlayService.kt index db298b12a..0a93d6c02 100644 --- a/app/src/main/java/io/legado/app/service/AudioPlayService.kt +++ b/app/src/main/java/io/legado/app/service/AudioPlayService.kt @@ -124,7 +124,12 @@ class AudioPlayService : BaseService(), upPlayProgressJob?.cancel() exoPlayer.clearMediaItems() val analyzeUrl = - AnalyzeUrl(url, headerMapF = AudioPlay.headers(), useWebView = true) + AnalyzeUrl( + url, + headerMapF = AudioPlay.headers(), + source = AudioPlay.bookSource, + useWebView = true + ) val uri = Uri.parse(analyzeUrl.url) val mediaSource = ExoPlayerHelper.createMediaSource(uri) exoPlayer.setMediaSource(mediaSource)