Skip to content

Commit

Permalink
Fix oauth path
Browse files Browse the repository at this point in the history
  • Loading branch information
zeyugao authored and kookxiang committed May 17, 2024
1 parent 6c2bd1e commit 84709cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Jellyfin.Plugin.Bangumi/OAuth/OAuthController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public async Task<ActionResult> DeAuth()
[HttpGet("Redirect")]
public Task<ActionResult> SetCallbackUrl([FromQuery(Name = "prefix")] string urlPrefix, [FromQuery(Name = "user")] string user)
{
_oAuthPath = $"{urlPrefix}/Bangumi/OAuth";
_oAuthPath = $"{urlPrefix}/Plugins/Bangumi/OAuth";
var redirectUri = Uri.EscapeDataString($"{_oAuthPath}?user={user}");
return Task.FromResult<ActionResult>(
Redirect($"https://bgm.tv/oauth/authorize?client_id={ApplicationId}&redirect_uri={redirectUri}&response_type=code"));
Expand Down

0 comments on commit 84709cd

Please sign in to comment.