identify-media
Version:
Analyse file path and content to make search criteria for media APIs
17 lines • 568 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const getEpisode = (query, apikey) => {
return {
method: 'GET',
baseURL: 'https://api.themoviedb.org',
params: {
api_key: apikey,
language: query.language,
append_to_response: 'external_ids,credits,images,videos,translations'
},
url: `/3/tv/${query.id}/season/${query.season}/episode/${query.episode}`,
responseType: 'json',
};
};
exports.default = getEpisode;
//# sourceMappingURL=getEpisode.js.map