Skip to content

Conversation

@dkorunic
Copy link

I'm sending this PR for further discussion and possible inclusion. Things done:

  • properly format (erroneous space before gomd.Init()) code in README
  • remove erroneous "/?" suffix in baseURL, as parameter/query builder will make sure we have proper URL format
  • refactor MovieByImdbID() to use query *QueryData as rest of the API, so that we can also provide Season and Episode in query, as per OMDB API (i permits Season and Episode parameters)
  • refactor requestAPI() for "id" and "t" accordingly, so that we also permit Season and Episode parameters in QueryData
  • fix invalid Errorf() format in TestInvalidCategory() and TestFailSearch()
  • refactor TestMediaByTitle() to add more tests and update for API changes, test Episode and Series queries
  • refactor TestMediaByImdbID() for API changes mentioned above and add new tests, namely Season and Episode searches

- Extend QueryData to be able to use s and i queries with Season and
  Episode parameters
- Exnted MovieByImdbID() to include Season and Episode where
  appropriate,
- Refactor MovieByImdbID() to use QueryData as per standard API which
  also permits SearchType, Season and Episode filters
- Update unit tests for API changes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant