UNPKG

identify-media

Version:

Analyse file path and content to make search criteria for media APIs

18 lines (15 loc) 527 B
import {RequestConfig, TmdbGetSeasonQuery} from "../index"; const getSeason = (query: TmdbGetSeasonQuery, apikey: string): RequestConfig => { 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}`, responseType: 'json', }; } export default getSeason;