Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Season support with extended season client #165

Merged
merged 8 commits into from
Jul 17, 2024

Conversation

scampower3
Copy link
Member

@scampower3 scampower3 commented Jul 17, 2024

extended from #154
🙃

@scampower3 scampower3 added the feature This PR or Issue requests or introduces a new feature label Jul 17, 2024
/// <inheritdoc/>
public async System.Threading.Tasks.Task<Response99> GetSeasonExtendedWithTranslationsAsync(double id, System.Threading.CancellationToken cancellationToken = default)
{
var client_ = _httpClient;

Check notice

Code scanning / CodeQL

Missed 'using' opportunity Note

This variable is manually
disposed
in a
finally block
- consider a C# using statement as a preferable resource management technique.

await PrepareRequestAsync(client_, request_, url_, cancellationToken).ConfigureAwait(false);

var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false);

Check notice

Code scanning / CodeQL

Missed 'using' opportunity Note

This variable is manually
disposed
in a
finally block
- consider a C# using statement as a preferable resource management technique.
/// </summary>
public sealed partial class ExtendedSeasonClient : SeasonsClient, IExtendedSeasonClient
{
private System.Net.Http.HttpClient _httpClient;

Check notice

Code scanning / CodeQL

Missed 'readonly' opportunity Note

Field '_httpClient' can be 'readonly'.
Copy link
Member

@crobibero crobibero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hopefully it'll be fixed upstream one day

@scampower3
Copy link
Member Author

They haven't been responding to the github issues for the past few months. 🙃

@crobibero crobibero merged commit efa937d into jellyfin:master Jul 17, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature This PR or Issue requests or introduces a new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants