Skip to content

Commit ba25e92

Browse files
committed
Set OAuth attribute when accessing /youtube/stream route.
1 parent d561a5a commit ba25e92

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

plugin/src/main/java/dev/lavalink/youtube/plugin/YoutubeRestHandler.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ public ResponseEntity<StreamingResponseBody> getYoutubeVideoStream(@PathVariable
7474
}
7575

7676
log.debug("Loading formats for {} with client {}", videoId, client.getIdentifier());
77+
httpInterface.getContext().setAttribute(Client.OAUTH_CLIENT_ATTRIBUTE, client.supportsOAuth());
7778

7879
TrackFormats formats;
7980

0 commit comments

Comments
 (0)