From 22f9e57858618a2c8267c87378e5158f03a8a887 Mon Sep 17 00:00:00 2001 From: appujet Date: Wed, 1 May 2024 22:23:28 +0530 Subject: [PATCH] update for beta test --- .../java/com/github/appujet/jiosaavn/ExtendedAudioTrack.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main/src/main/java/com/github/appujet/jiosaavn/ExtendedAudioTrack.java b/main/src/main/java/com/github/appujet/jiosaavn/ExtendedAudioTrack.java index c69d192..9fab5d9 100644 --- a/main/src/main/java/com/github/appujet/jiosaavn/ExtendedAudioTrack.java +++ b/main/src/main/java/com/github/appujet/jiosaavn/ExtendedAudioTrack.java @@ -37,7 +37,8 @@ public void process(LocalAudioTrackExecutor executor) throws Exception { protected void loadStream(LocalAudioTrackExecutor localExecutor, HttpInterface httpInterface) throws Exception { final String trackUrl = getPlaybackUrl(); - try (PersistentHttpStream stream = new PersistentHttpStream(httpInterface, new URI(trackUrl), Long.MAX_VALUE)) { + log.info("Loading track from URL: {}", trackUrl); + try (PersistentHttpStream stream = new PersistentHttpStream(httpInterface, new URI(trackUrl), this.getTrackDuration())) { processDelegate(createAudioTrack(this.trackInfo, stream), localExecutor); } }