From 53e9c499a4dc2c855ce896ca678d9933eb753ed4 Mon Sep 17 00:00:00 2001 From: gedoor Date: Sun, 5 Sep 2021 22:18:48 +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 --- app/src/main/java/io/legado/app/service/AudioPlayService.kt | 2 +- 1 file changed, 1 insertion(+), 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 01a795d24..332a5b1e2 100644 --- a/app/src/main/java/io/legado/app/service/AudioPlayService.kt +++ b/app/src/main/java/io/legado/app/service/AudioPlayService.kt @@ -131,7 +131,7 @@ class AudioPlayService : BaseService(), headerMapF = AudioPlay.headers(), source = AudioPlay.bookSource ) - val uri = Uri.parse(analyzeUrl.url) + val uri = Uri.parse(analyzeUrl.getDirectUrl()) val mediaSource = ExoPlayerHelper .createMediaSource(uri, analyzeUrl.headerMap) exoPlayer.setMediaSource(mediaSource)