mirror of
https://github.com/euzu/tuliprox.git
synced 2026-10-08 00:42:32 +02:00
- Add Makefile to simplify installing required tools - Add CONTRIBUTING.md welcome new contributors - Add fmt, lint, test tasks to makefile and update CONTRIBUTING.md - Add CI workflow - Log with local date
66 lines
2.1 KiB
Rust
66 lines
2.1 KiB
Rust
use crate::model::XtreamCluster;
|
|
|
|
pub const XC_LIVE_ID: &str = "live_id";
|
|
pub const XC_VOO_ID: &str = "vod_id";
|
|
pub const XC_SERIES_ID: &str = "series_id";
|
|
|
|
pub const XC_ACTION_GET_SERIES_INFO: &str = "get_series_info";
|
|
pub const XC_ACTION_GET_VOD_INFO: &str = "get_vod_info";
|
|
pub const XC_ACTION_GET_LIVE_INFO: &str = "get_live_info";
|
|
pub const XC_ACTION_GET_SERIES: &str = "get_series";
|
|
pub const XC_ACTION_GET_LIVE_CATEGORIES: &str = "get_live_categories";
|
|
pub const XC_ACTION_GET_VOD_CATEGORIES: &str = "get_vod_categories";
|
|
pub const XC_ACTION_GET_SERIES_CATEGORIES: &str = "get_series_categories";
|
|
pub const XC_ACTION_GET_LIVE_STREAMS: &str = "get_live_streams";
|
|
pub const XC_ACTION_GET_VOD_STREAMS: &str = "get_vod_streams";
|
|
pub const XC_ACTION_GET_ACCOUNT_INFO: &str = "get_account_info";
|
|
pub const XC_ACTION_GET_EPG: &str = "get_epg";
|
|
pub const XC_ACTION_GET_SHORT_EPG: &str = "get_short_epg";
|
|
pub const XC_ACTION_GET_CATCHUP_TABLE: &str = "get_simple_data_table";
|
|
pub const XC_TAG_ID: &str = "id";
|
|
pub const XC_TAG_CATEGORY_ID: &str = "category_id";
|
|
pub const XC_TAG_STREAM_ID: &str = "stream_id";
|
|
pub const XC_TAG_EPG_LISTINGS: &str = "epg_listings";
|
|
pub const XC_PROP_BACKDROP_PATH: &str = "backdrop_path";
|
|
pub const XC_PROP_COVER: &str = "cover";
|
|
pub const XC_TAG_CATEGORY_NAME: &str = "category_name";
|
|
|
|
pub const VIDEO_STREAM_FIELDS: [&str; 14] = [
|
|
"release_date",
|
|
"cast",
|
|
"director",
|
|
"episode_run_time",
|
|
"genre",
|
|
"stream_type",
|
|
"title",
|
|
"year",
|
|
"youtube_trailer",
|
|
"trailer",
|
|
"plot",
|
|
"rating_5based",
|
|
"stream_icon",
|
|
"container_extension",
|
|
];
|
|
|
|
pub const SERIES_STREAM_FIELDS: [&str; 15] = [
|
|
XC_PROP_BACKDROP_PATH,
|
|
"cast",
|
|
XC_PROP_COVER,
|
|
"director",
|
|
"episode_run_time",
|
|
"genre",
|
|
"last_modified",
|
|
"name",
|
|
"plot",
|
|
"rating_5based",
|
|
"stream_type",
|
|
"title",
|
|
"year",
|
|
"youtube_trailer",
|
|
"trailer",
|
|
];
|
|
|
|
pub const XTREAM_VOD_REWRITE_URL_PROPS: [&str; 1] = [XC_PROP_COVER];
|
|
|
|
pub const XTREAM_CLUSTER: [XtreamCluster; 3] = [XtreamCluster::Live, XtreamCluster::Video, XtreamCluster::Series];
|