export enum Category {
	MOVIES_XVID        = 14,
	MOVIES_XVID_720    = 48,
	MOVIES_X264        = 17,
	MOVIES_X264_1080   = 44,
	MOVIES_X264_720    = 45,
	MOVIES_X264_3D     = 47,
	MOVIES_X264_4K     = 50,
	MOVIES_X265_4K     = 51,
	MOVIES_X265_4K_HDR = 52,
	MOVIES_FULL_BD     = 42,
	MOVIES_BD_REMUX    = 46,
	TV_EPISODES        = 18,
	TV_HD_EPISODES     = 41,
	TV_UHD_EPISODES    = 49
}

export enum ErrorCode {
	NoTokenSet     = 1,
	InvalidToken   = 4,
	InvalidImdb    = 9,
	ImdbNotFound   = 10,
	NoResultsFound = 20,
	Error          = 22
}

export interface ITokenResponse {
	token: string
}

export interface ISearchResult {
	error          ?: string,
	error_code     ?: number,
	torrent_results?: IResult[]
}

export interface IResult {
	title       : string,
	category    : string,
	download    : string,
	seeders     : number,
	leechers    : number,
	size        : number,
	pubdate     : string,
	ranked      : number,
	info_page   : string,
	episode_info: {
		imdb      : string|null,
		tvdb      : string|null,
		themoviedb: string|null,
	}
}
