BenShelton / library-api

An API for accessing information related to meetings and publications of Jehovah's Witnesses
https://benshelton.github.io/library-api/
MIT License
10 stars 2 forks source link

[Feature] Use new Media Details #55

Closed BenShelton closed 3 years ago

BenShelton commented 3 years ago

Packages

All

Describe the solution you'd like

Media details used to all be stored in the catalog. Now though they are in a separate NDJSON file, so newer videos no longer have associated media (see #53)

We should transition the getMediaDetails to be based off this NDJSON file instead, in a new method, although the DTO can stay the same I believe.

Describe alternatives you've considered

Placeholders were added in #54, but we have no title or image so it's unclear what the video is.

Additional context

Endpoint is https://app.jw-cdn.org/catalogs/media/E.json.gz (adjusting for language I assume, untested)