Skip to content

Commit

Permalink
java docs for loadTrackInfoFromInnertube method.
Browse files Browse the repository at this point in the history
  • Loading branch information
devoxin committed Dec 4, 2024
1 parent 37919d0 commit 008faf9
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 008faf9

Please sign in to comment.