-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Feature: New metaprovider for iTunes music #1009
Conversation
Hmm timeout after 20 minutes on mac, which is typically much faster. Not sure if it's related to the PR |
I see, I am trying to figure out why, I only modified files from core folder so I do not understand what happened. |
Maybe Github randomly gave us a weaker machine for this run. It's fine. |
.filter(artist => artist.artistType === 'Artist') | ||
.map(artist => ({ | ||
id: artist.artistId, | ||
coverImage: '', |
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.
Too bad they don't have images for artists 😔
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.
Yeah, I tried but it would require a lot of API requests :/
Thanks for the contribution. I reviewed the code, it's pretty great. Could you please write some tests to cover your changes? Either unit tests for the provider or a larger integration test for the search box with this provider being selected. |
Alright, is there any reference that I could use? :) |
one of those file is unit test you can reference. |
I'll make sure to write some guidelines for creating new tests soon. |
Codecov Report
@@ Coverage Diff @@
## master #1009 +/- ##
==========================================
+ Coverage 59.66% 60.57% +0.90%
==========================================
Files 269 272 +3
Lines 4698 4781 +83
Branches 302 304 +2
==========================================
+ Hits 2803 2896 +93
+ Misses 1637 1625 -12
- Partials 258 260 +2
Continue to review full report at Codecov.
|
@nukeop Hi, I just added unit tests for rest/iTunes.ts, meta/itunesmusic.ts and meta/itunespodcast.ts. |
I noticed that you put your mocks in a |
Ready, I moved it and changed the name, it is fine? |
Looks great, thank you. |
Context: How I mentioned in this issue: #1005 I added iTunes music API as metaprovider.
Hello, I did some modifies on rest/iTunesPodcast.ts, I changed the name to rest/iTunes.ts and added functions for request music. I also created meta/itunesmusic.ts and Implemented the MetaProvider functions.
I ran the tests, I did not have problems, here is a video of how it works :)
Nuclear.Music.Player.2021-07-07.09-21-34.mp4