From d5e1a7204480856490809139806ba22f7da512d7 Mon Sep 17 00:00:00 2001 From: KagChi <59391215+KagChi@users.noreply.github.com> Date: Thu, 25 Jul 2024 11:15:10 +0700 Subject: [PATCH] chore: disable preview playback --- .../topi314/lavasrc/mirror/MirroringAudioTrack.java | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/main/src/main/java/com/github/topi314/lavasrc/mirror/MirroringAudioTrack.java b/main/src/main/java/com/github/topi314/lavasrc/mirror/MirroringAudioTrack.java index f3915809..c3bfc36d 100644 --- a/main/src/main/java/com/github/topi314/lavasrc/mirror/MirroringAudioTrack.java +++ b/main/src/main/java/com/github/topi314/lavasrc/mirror/MirroringAudioTrack.java @@ -29,17 +29,6 @@ public MirroringAudioTrack(AudioTrackInfo trackInfo, String albumName, String al @Override public void process(LocalAudioTrackExecutor executor) throws Exception { - if (this.isPreview) { - if (this.previewUrl == null) { - throw new FriendlyException("No preview url found", FriendlyException.Severity.COMMON, new IllegalArgumentException()); - } - try (var httpInterface = this.sourceManager.getHttpInterface()) { - try (var stream = new PersistentHttpStream(httpInterface, new URI(this.previewUrl), this.trackInfo.length)) { - processDelegate(createAudioTrack(this.trackInfo, stream), executor); - } - } - return; - } var track = this.sourceManager.getResolver().apply(this); if (track instanceof AudioPlaylist) {