stari4ek / tvirl

Public resources for TVirl: IPTV for Android TV
31 stars 2 forks source link

xtream codes support #51

Open rigas40 opened 2 years ago

rigas40 commented 2 years ago

Authentication /player_api.php?username=X&password=X

GET Live Stream Categories /player_api.php?username=X&password=X&action=get_live_categories

GET VOD Stream Categories /player_api.php?username=X&password=X&action=get_vod_categories

GET SERIES Categories /player_api.php?username=X&password=X&action=get_series_categories

GET LIVE Streams /player_api.php?username=X&password=X&action=get_live_streams (This will get All LIVE Streams) /player_api.php?username=X&password=X&action=get_live_streams&category_id=X (This will get All LIVE Streams in the selected category ONLY)

GET VOD Streams /player_api.php?username=X&password=X&action=get_vod_streams (This will get All VOD Streams) /player_api.php?username=X&password=X&action=get_vod_streams&category_id=X (This will get All VOD Streams in the selected category ONLY)

GET SERIES Streams /player_api.php?username=X&password=X&action=get_series (This will get All Series) /player_api.php?username=X&password=X&action=get_series&category_id=X (This will get All Series in the selected category ONLY)

GET SERIES Info /player_api.php?username=X&password=X&action=get_series_info&series_id=X

GET VOD Info /player_api.php?username=X&password=X&action=get_vod_info&vod_id=X (This will get info such as video codecs, duration, description, directors for 1 VOD)

GET short_epg for LIVE Streams (same as stalker portal, prints the next X EPG that will play soon) /player_api.php?username=X&password=X&action=get_short_epg&stream_id=X /player_api.php?username=X&password=X&action=get_short_epg&stream_id=X&limit=X (You can specify a limit too, without limit the default is 4 epg listings)

GET ALL EPG for LIVE Streams (same as stalker portal, but it will print all epg listings regardless of the day) /player_api.php?username=X&password=X&action=get_simple_data_table&stream_id=X

Full EPG List for all Streams /xmltv.php?username=X&password=X

this is how it xtream-codes rewrites requests from apps/stbs,

rewrite ^/live/(.)/(.)/(.).(.)$ /streaming/clients_live.php?username=$1&password=$2&stream=$3&extension=$4 break; rewrite ^/movie/(.)/(.)/(.)$ /streaming/clients_movie.php?username=$1&password=$2&stream=$3&type=movie break; rewrite ^/series/(.)/(.)/(.)$ /streaming/clients_movie.php?username=$1&password=$2&stream=$3&type=series break; rewrite ^/(.)/(.)/(.).ch$ /streaming/clients_live.php?username=$1&password=$2&stream=$3&extension=ts break; rewrite ^/(.).ch$ /streaming/clients_live.php?extension=ts&stream=$1&qs=$query_string break; rewrite ^/ch(.).m3u8$ /streaming/clients_live.php?extension=m3u8&stream=$1&qs=$query_string break; rewrite ^/hls/(.)/(.)/(.)/(.)/(.)$ /streaming/clients_live.php?extension=m3u8&username=$1&password=$2&stream=$3&type=hls&segment=$5&token=$4 break; rewrite ^/hlsr/(.)/(.)/(.)/(.)/(.)/(.)$ /streaming/clients_live.php?token=$1&username=$2&password=$3&segment=$6&stream=$4&key_seg=$5 break; rewrite ^/timeshift/(.)/(.)/(.)/(.)/(.).(.)$ /streaming/timeshift.php?username=$1&password=$2&stream=$5&extension=$6&duration=$3&start=$4 break; rewrite ^/timeshifts/(.)/(.)/(.)/(.)/(.).(.)$ /streaming/timeshift.php?username=$1&password=$2&stream=$4&extension=$6&duration=$3&start=$5 break; rewrite ^/(.)/(.)/(\d+)$ /streaming/clients_live.php?username=$1&password=$2&stream=$3&extension=ts break;

is was cool add support to XC login