Skip to content

Expose Tokens RPC for music video downloads#24

Open
KyokoMiki wants to merge 1 commit into
WorldObservationLog:mainfrom
KyokoMiki:main
Open

Expose Tokens RPC for music video downloads#24
KyokoMiki wants to merge 1 commit into
WorldObservationLog:mainfrom
KyokoMiki:main

Conversation

@KyokoMiki
Copy link
Copy Markdown

Introduce a new Tokens gRPC endpoint that returns the bearer token and music user token for a given Adam ID, allowing the downloader to obtain the credentials required for music video downloads.

  • Define TokensRequest, TokensDataRequest, TokensReply, and TokensDataResponse messages in the protobuf schema
  • Register the Tokens RPC method in WrapperManagerService
  • Implement server.Tokens() handler in main.go, which selects an instance via SelectMVInstance, retrieves bearer/music tokens, and returns them
  • Add SelectMVInstance() in region.go that checks content availability across all instances with music video flag enabled, returning a random available instance

Introduce a new `Tokens` gRPC endpoint that returns the bearer token
and music user token for a given Adam ID, allowing the downloader to
obtain the credentials required for music video downloads.

- Define `TokensRequest`, `TokensDataRequest`, `TokensReply`, and `TokensDataResponse` messages in the protobuf schema
- Register the `Tokens` RPC method in `WrapperManagerService`
- Implement `server.Tokens()` handler in main.go, which selects an instance via `SelectMVInstance`, retrieves bearer/music tokens, and returns them
- Add `SelectMVInstance()` in region.go that checks content availability across all instances with music video flag enabled, returning a random available instance
- Regenerate gRPC/protobuf Go code with protoc-gen-go-grpc v1.6.1 / protoc v7.34.1, which also applies minor style fixes (status.Errorf -> status.Error, typo correction)
- Normalize indentation in LyricResponse struct (spaces -> tabs)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant