pathe-movie
Installation
SKILL.md
Pathé Movie Skill
Summary
- Always talk to the
https://www.pathe.nl/apiendpoints with the required browserlike headers (seescripts/pathe_movie.py). - Use the config at
config/pathe_movie_config.jsonto know which cinemas to assume unless the user explicitly names a different cinema. - Rely on
scripts/pathe_movie.pyfor reusable helpers (sanitizing queries, fuzzy matching, best-match selection, and fetching downstream endpoints). - When uncertain, reference
references/api.mdfor payload shape, field names, and expected response structures.
Search flow
- Clean the user’s movie name by removing filler words (
the,a,an,of,in,on,for,and). - Call
/api/search/full?q=...with the sanitized query. - If multiple entries return, run a fuzzy title match (difflib) to pick the closest
title. Keep theslug,poster(useposter.lg), andcontentRatingfields for later requests. - If a poster is required, return the
poster.lgURL (fall back toposter.md/posterPathwhen necessary).
Movie detail flow
- Given a slug, call
/api/show/{slug}?language=nl. - Pull
contentRating.descriptionandsynopsis(some entries havenull; handle gracefully) plus any extras such asgenres,directors,actors, andtrailersas context. - Poster references now live under
posterPathbefore falling back to the search response’sposter.