diff --git a/src/main/java/me/kavin/piped/server/handlers/StreamHandlers.java b/src/main/java/me/kavin/piped/server/handlers/StreamHandlers.java index e0af9cc..779a68a 100644 --- a/src/main/java/me/kavin/piped/server/handlers/StreamHandlers.java +++ b/src/main/java/me/kavin/piped/server/handlers/StreamHandlers.java @@ -141,7 +141,7 @@ public class StreamHandlers { .forEach(stream -> audioStreams.add(new PipedStream(rewriteVideoURL(stream.getContent()), String.valueOf(stream.getFormat()), stream.getAverageBitrate() + " kbps", stream.getFormat().getMimeType(), false, stream.getBitrate(), stream.getInitStart(), - stream.getInitEnd(), stream.getIndexStart(), stream.getIndexEnd(), stream.getCodec()))); + stream.getInitEnd(), stream.getIndexStart(), stream.getIndexEnd(), stream.getCodec(), stream.getAudioTrackId(), stream.getAudioTrackName()))); } final List relatedStreams = collectRelatedItems(info.getRelatedItems()); diff --git a/src/main/java/me/kavin/piped/utils/obj/PipedStream.java b/src/main/java/me/kavin/piped/utils/obj/PipedStream.java index 2b52f56..3290409 100644 --- a/src/main/java/me/kavin/piped/utils/obj/PipedStream.java +++ b/src/main/java/me/kavin/piped/utils/obj/PipedStream.java @@ -2,7 +2,7 @@ package me.kavin.piped.utils.obj; public class PipedStream { - public String url, format, quality, mimeType, codec; + public String url, format, quality, mimeType, codec, audioTrackId, audioTrackName; public boolean videoOnly; public int bitrate, initStart, initEnd, indexStart, indexEnd, width, height, fps; @@ -16,7 +16,7 @@ public class PipedStream { } public PipedStream(String url, String format, String quality, String mimeType, boolean videoOnly, int bitrate, - int initStart, int initEnd, int indexStart, int indexEnd, String codec) { + int initStart, int initEnd, int indexStart, int indexEnd, String codec, String audioTrackId, String audioTrackName) { this.url = url; this.format = format; this.quality = quality; @@ -28,10 +28,12 @@ public class PipedStream { this.indexStart = indexStart; this.indexEnd = indexEnd; this.codec = codec; + this.audioTrackId = audioTrackId; + this.audioTrackName = audioTrackName; } public PipedStream(String url, String format, String quality, String mimeType, boolean videoOnly, int bitrate, - int initStart, int initEnd, int indexStart, int indexEnd, String codec, int width, int height, int fps) { + int initStart, int initEnd, int indexStart, int indexEnd, String codec, int width, int height, int fps) { this.url = url; this.format = format; this.quality = quality;