|
|
@ -17,28 +17,28 @@ export class IpcClient<M extends Microservice = Microservice> extends IpcClientS |
|
|
|
/** |
|
|
|
* Get the details of a movie |
|
|
|
*/ |
|
|
|
protected async details(tmdbId: number) { |
|
|
|
public async details(tmdbId: number) { |
|
|
|
return await this.request("details", tmdbId); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* Find a movie by its IMDb ID |
|
|
|
*/ |
|
|
|
protected async findFromImdb(imdbId: string) { |
|
|
|
public async findFromImdb(imdbId: string) { |
|
|
|
return await this.request("find", imdbId); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* Search for a movie |
|
|
|
*/ |
|
|
|
protected async search(query: string, year?: number, page?: number) { |
|
|
|
public async search(query: string, year?: number, page?: number) { |
|
|
|
return await this.request("search", { query, year, page }); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* Verify an IMDb ID |
|
|
|
*/ |
|
|
|
protected async verifyImdbId(imdbId: string) { |
|
|
|
public async verifyImdbId(imdbId: string) { |
|
|
|
return await this.request("verify_imdb_id", imdbId); |
|
|
|
} |
|
|
|
} |