Skip to content

Commit

Permalink
update sample for 10.9
Browse files Browse the repository at this point in the history
  • Loading branch information
crobibero committed May 12, 2024
1 parent 4b5e2d6 commit d91eaac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions samples/Simple/SimpleService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -101,15 +101,15 @@ public async Task RunAsync()
}
while (!validUser);

await PrintViews(userDto.Id.Value)
await PrintViews()
.ConfigureAwait(false);
}

private async Task PrintViews(Guid userId)
private async Task PrintViews()
{
try
{
var views = await _jellyfinApiClient.Users[userId].Views.GetAsync()
var views = await _jellyfinApiClient.UserViews.GetAsync()
.ConfigureAwait(false);
Console.WriteLine("Printing Views:");
foreach (var view in views.Items)
Expand Down

0 comments on commit d91eaac

Please sign in to comment.