From 008faf9f7a39c3f98d24fc1d5c98a9dc960a377c Mon Sep 17 00:00:00 2001 From: Devoxin Date: Wed, 4 Dec 2024 00:05:07 +0000 Subject: [PATCH] java docs for loadTrackInfoFromInnertube method. --- .../youtube/clients/skeleton/NonMusicClient.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/common/src/main/java/dev/lavalink/youtube/clients/skeleton/NonMusicClient.java b/common/src/main/java/dev/lavalink/youtube/clients/skeleton/NonMusicClient.java index 092a382..312161d 100644 --- a/common/src/main/java/dev/lavalink/youtube/clients/skeleton/NonMusicClient.java +++ b/common/src/main/java/dev/lavalink/youtube/clients/skeleton/NonMusicClient.java @@ -85,6 +85,20 @@ protected JsonBrowser loadTrackInfoFromInnertube(@NotNull YoutubeAudioSourceMana return loadTrackInfoFromInnertube(source, httpInterface, videoId, status, true); } + /** + * Retrieve raw JSON data for a specific video by its ID. + * @param source The source manager linked to this client. + * @param httpInterface The interface to use for HTTP requests. + * @param videoId The ID of the video to retrieve information for. + * @param status The last playability status, or {@code null} if an attempt to retrieve + * information has not been made yet. + * @param validatePlayabilityStatus Whether to validate playability status. This may be {@code false} + * in situations where only video metadata is required. If video data + * does not exist, this is forcefully checked regardless of provided value. + * @return The raw JSON data as received from YouTube. + * @throws CannotBeLoaded If a video does not exist, is private, or otherwise inaccessible. + * @throws IOException If a HTTP request fails, etc. + */ @NotNull protected JsonBrowser loadTrackInfoFromInnertube(@NotNull YoutubeAudioSourceManager source, @NotNull HttpInterface httpInterface,