Skip to content

Commit 3681f75

Browse files
committed
Add logging for ARL parsing failure in DeezerAudioTrack
1 parent 579a5a8 commit 3681f75

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

main/src/main/java/com/github/topi314/lavasrc/deezer/DeezerAudioTrack.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
import org.apache.http.entity.StringEntity;
2525
import org.apache.http.impl.client.BasicCookieStore;
2626
import org.apache.http.impl.cookie.BasicClientCookie;
27+
import org.slf4j.Logger;
28+
import org.slf4j.LoggerFactory;
2729

2830
import java.io.IOException;
2931
import java.net.URI;
@@ -36,6 +38,8 @@
3638

3739
public class DeezerAudioTrack extends ExtendedAudioTrack {
3840

41+
private static final Logger log = LoggerFactory.getLogger(DeezerAudioTrack.class);
42+
3943
private final DeezerAudioSourceManager sourceManager;
4044

4145
public DeezerAudioTrack(AudioTrackInfo trackInfo, DeezerAudioSourceManager sourceManager) {
@@ -119,7 +123,7 @@ public void process(LocalAudioTrackExecutor executor) throws Exception {
119123
}
120124
}
121125
} catch (IOException e) {
122-
throw new RuntimeException(e);
126+
log.debug("Failed to parse arl from userData", e);
123127
}
124128

125129
if (arl == null) {

0 commit comments

Comments
 (0)