Skip to content

Commit

Permalink
Set OAuth attribute when accessing /youtube/stream route.
Browse files Browse the repository at this point in the history
  • Loading branch information
devoxin committed Dec 20, 2024
1 parent d561a5a commit ba25e92
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ public ResponseEntity<StreamingResponseBody> getYoutubeVideoStream(@PathVariable
}

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

TrackFormats formats;

Expand Down

0 comments on commit ba25e92

Please sign in to comment.