kinoklub-api
Version:
Support library for KinoKlub
37 lines (36 loc) • 1.42 kB
TypeScript
import { HTMLElement } from 'node-html-parser';
import { KinoklubProjection } from '../interfaces/movie.interface';
export declare const getId: (el: HTMLElement) => number;
export declare const getTitle: (el: HTMLElement) => string;
export declare const getInfo: (el: HTMLElement) => string[];
export declare const getDescription: (el: HTMLElement) => string;
export declare const getButton: (el: HTMLElement, name: 'ČSFD' | 'IMDB') => {
id: string;
link: string;
};
export declare const getTags: (el: HTMLElement) => string[];
export declare const getYoutube: (el: HTMLElement) => string;
export declare const getImage: (el: HTMLElement) => string;
export declare const pickInfo: (info: string[], parseString: string) => {
text: string;
index: number;
};
export declare const getTitleOriginal: (info: string[]) => {
text: string;
index: number;
};
export declare const getDirector: (info: string[]) => {
text: string;
index: number;
};
export declare const getLanguage: (info: string[]) => {
text: string;
index: number;
};
export declare const getSubtitles: (info: string[]) => {
text: string;
index: number;
};
export declare const getCurrentProjection: (el: HTMLElement) => KinoklubProjection;
export declare const removeIndexesFromArray: (arr: string[], indexes: number[]) => string[];
export declare const getProjections: (el: HTMLElement) => KinoklubProjection[];