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

Fix iTunes Search API issues #572

Merged
merged 4 commits into from
Oct 14, 2024
Merged

Conversation

rgoldberg
Copy link
Contributor

There are numerous problems with the integration with the iTunes Search API.

  1. Add & use Entity.desktopSoftware instead of macSoftware. Former returns info (including version & description) that aligns with what is displayed in the App Store, while latter is at least sometimes out of alignment. Latter also seems to return any software that can run on a Mac (e.g., iOS, iPadOS, etc. software for Apple Silicon), seeming to default to iOS info. Probably better to get versions for each platform separately so we know what's for what platform.
  2. Update iTunes Search API documentation URL to https://performance-partners.apple.com/search-api.
  3. Add media=software query item to lookup URL to improve results.
  4. Refactor StoreSearch.lookup(…) & StoreSearch.search(…) to share implementation, which deduplicates code & allows lookup to accept an Entity argument to get an app version for a specific platform instead of being hardcoded to desktopSoftware. Will help allow flags in the future to specify what platforms to check for apps.
  5. Misc cleanup

Resolve #561

Partial mas-cli#561

Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
`desktopSoftware` returns info (including version & description) that aligns with what is displayed earlier in the App Store, while `macSoftware` is at least sometimes out of alignment.

Partial mas-cli#561

Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
Reorder query items for both lookup URLs & search URLs.

Partial mas-cli#561

Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
…mplementation, which allows `lookup` to accept an `Entity` argument instead of being hardcoded to `desktopSoftware`.

Resolve mas-cli#561

Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
@rgoldberg rgoldberg added this to the 1.8.7 milestone Oct 14, 2024
@rgoldberg rgoldberg self-assigned this Oct 14, 2024
@rgoldberg rgoldberg merged commit bf627cc into mas-cli:main Oct 14, 2024
3 checks passed
@rgoldberg rgoldberg deleted the 561-itunes-search branch October 14, 2024 20:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

iTunes Search API issues
1 participant