Skip to content

Conversation

@CyberPoison
Copy link

Description

This PR updates the grabbers for meo.pt and nostv.pt to adapt to recent API changes. Both providers were updated to use new endpoints and data structures.

Changes

meo.pt

  • API Update: Switched to meogouser.apps.meo.pt endpoints.
  • Method: Changed requests from POST to GET with appropriate headers.
  • Parser: Updated logic to handle the new JSON structure (using Result array and flattened program properties).
  • Tests: Updated unit tests and mock data (data/content.json) to reflect the new API response.
  • Fixes: Resolved linting issues (unused variables).

nostv.pt

  • API Update: Switched to api.clg.nos.pt endpoints for both channels and schedule.
  • Auth: Added required headers (including x-apikey and x-core-appversion) to authenticate requests.
  • Parser: Updated logic to extract program details from the new Metadata object structure.
  • Tests: Updated unit tests and mock data (data/data.json).
  • Fixes: Fixed linting errors (quote styles and unused variables).

Verification

  • npm test -- sites/meo.pt/meo.pt.test.js passed.
  • npm test -- sites/nostv.pt/nostv.pt.test.js passed.
  • Validated XML generation for both sites.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant