-
-
Notifications
You must be signed in to change notification settings - Fork 27
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
10.9 support #115
10.9 support #115
Conversation
catch (Exception ex) | ||
{ | ||
throw new JsonException($"Failed to parse response, code: {Code}, context: {string.Join(", ", context)}, body: \n{(string.IsNullOrWhiteSpace(Body) ? "\"\"" : Body)}", ex); | ||
} |
Check notice
Code scanning / CodeQL
Generic catch clause Note
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for making the update, so far it looks great!
cd0fbf2
to
0385f6c
Compare
If you rebase on the |
Also sorry for making other 10.9 changes, I just went through the list of plugins to make them buildable |
} | ||
}; | ||
|
||
request.Headers.Add("User-Agent", $"Jellyfin-Plugin-OpenSubtitles v{_version}"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
request.Headers.UserAgent.Add("Jellyfin-Plugin-OpenSubtitles", _version);
should work
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@MBR-0001 in case you missed it :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I reverted to just setting it inside constructor in 996de2d
I don't remember why I changed this in the first place
I had to do the following modifications to csproj for it to build:
original is:
CI is not running so I'm not sure if this actually builds with unchanged csproj |
Also "modernized" the code:
Bumped .net version to 7lolCloses #143