-
Notifications
You must be signed in to change notification settings - Fork 210
Add trakt.tv provider #321
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
Conversation
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.
Your own trackt.tv test fails with
Debug: internal, implementation, error
Error: Uncaught error: `value` required in setHeader("trakt-api-key", value).
at ClientRequest.OutgoingMessage.setHeader (_http_outgoing.js:354:11)
at new ClientRequest (_http_client.js:79:14)
at Object.exports.request (http.js:31:10)
at internals.Client.request.options.beforeRedirect.onResponse [as request]
If you solve that, we can get it merged.
@ldesplat Ups, sorry. Will check and correct the tests. Thank you |
missing that 0.06% coverage 😲 😉 |
@AdriVanHoudt @ldesplat yeah, I saw the failing tests due to coverage. Can you please tell me how to add test coverage for It's this line:
in the trakt.js provider. |
So you need a test that covers passing options and one that covers it defaulting to {} |
Thank you buddy. I didn’t notice at first what was missing. I thought the default option is fine, but —of course— needs testing as well 😄 |
@ldesplat Hi Loïs, I fixed the failing tests and coverage is at 100%. Any chance to get this merged? Thank you! |
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.
LGTM
Failing tests are normal and nothing to worry about. Just new node globals and we're still on such old versions of our dependencies. Thank you! |
@ldesplat @AdriVanHoudt Thank you for merging! |
This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions. |
The provider to support the trakt.tv OAuth API is yet missing. This PR helps to add support for trakt.
It uses the extended trakt.tv user profile by default.
Hopefully this helps users to connect with trakt.tv’s OAuth API :)