mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-08 17:06:15 -08:00
feat(shared): add xtream code api related interfaces
This commit is contained in:
1 parent
b6f9778ae9
commit
dc269b3076
6 files changed
+89
No files matched your search
@@ -0,0 +1,5 @@
|
||||
export interface XtreamCategory {
|
||||
category_id: string;
|
||||
category_name: string;
|
||||
parent_id: number;
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
export enum XtreamCodeActions {
|
||||
GetLiveStreams = 'get_live_streams',
|
||||
GetLiveCategories = 'get_live_categories',
|
||||
GetSeries = 'get_series',
|
||||
GetSeriesCategories = 'get_series_categories',
|
||||
GetSeriesInfo = 'get_series_info',
|
||||
GetVodStreams = 'get_vod_streams',
|
||||
GetVodCategories = 'get_vod_categories',
|
||||
GetVodInfo = 'get_vod_info',
|
||||
GetShortEpg = 'get_short_epg',
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
export interface XtreamLiveStream {
|
||||
num: number;
|
||||
name: string;
|
||||
stream_type: 'live';
|
||||
stream_id: number;
|
||||
stream_icon: string;
|
||||
epg_channel_id?: number;
|
||||
added: string;
|
||||
category_id: string;
|
||||
custom_sid?: string;
|
||||
tv_archive: number;
|
||||
direct_source?: string;
|
||||
tv_archive_duration: number;
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
import { XtreamCodeActions } from './xtream-code-actions';
|
||||
|
||||
export interface XtreamResponse {
|
||||
payload: unknown;
|
||||
action: XtreamCodeActions;
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
export interface XtreamVodDetails {
|
||||
info: {
|
||||
kinopoisk_url: string;
|
||||
tmdb_id: number;
|
||||
name: string;
|
||||
o_name: string;
|
||||
cover_big: string;
|
||||
movie_image: string;
|
||||
releasedate: string;
|
||||
episode_run_time: number;
|
||||
youtube_trailer: string;
|
||||
director: string;
|
||||
actors: string;
|
||||
cast: string;
|
||||
description: string;
|
||||
plot: string;
|
||||
age: string;
|
||||
mpaa_rating: string;
|
||||
rating_count_kinopoisk: number;
|
||||
country: string;
|
||||
genre: string;
|
||||
backdrop_path: string[];
|
||||
duration_secs: number;
|
||||
duration: string;
|
||||
video: string[];
|
||||
audio: string[];
|
||||
bitrate: number;
|
||||
rating: number;
|
||||
};
|
||||
movie_data: {
|
||||
stream_id: number;
|
||||
name: string;
|
||||
added: string;
|
||||
category_id: string;
|
||||
container_extension: string;
|
||||
custom_sid: string;
|
||||
direct_source: string;
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
export interface XtreamVodStream {
|
||||
num: number;
|
||||
name: string;
|
||||
stream_type: string;
|
||||
stream_id: number;
|
||||
stream_icon: string;
|
||||
rating: number;
|
||||
rating_5based: number;
|
||||
added: string;
|
||||
category_id: string;
|
||||
container_extension: string;
|
||||
custom_sid: string;
|
||||
direct_source: string;
|
||||
}
|
||||
Reference in new issue
Block a user