it is easy to change V1 channel link to be same as V2
Example :
will be
just add
in nginx.conf
so final section will be
Edit: make sure restart using this command
killall -9 /home/xtreamcodes/iptv_xtream_codes/php/sbin/php-fpm
killall -9 /home/xtreamcodes/iptv_xtream_codes/nginx/sbin/nginx
and start service again using
/home/xtreamcodes/iptv_xtream_codes/nginx/sbin/nginx
/home/xtreamcodes/iptv_xtream_codes/php/sbin/php-fpm
Example :
will be
just add
NGINX:
rewrite ^/(.*)/(.*)/(\d+)$ /streaming/clients_live.php?username=$1&password=$2&stream=$3&extension=ts break;
in nginx.conf
so final section will be
NGINX:
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 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 ^/(.*)/(.*)/(\d+)$ /streaming/clients_live.php?username=$1&password=$2&stream=$3&extension=ts break;
Edit: make sure restart using this command
killall -9 /home/xtreamcodes/iptv_xtream_codes/php/sbin/php-fpm
killall -9 /home/xtreamcodes/iptv_xtream_codes/nginx/sbin/nginx
and start service again using
/home/xtreamcodes/iptv_xtream_codes/nginx/sbin/nginx
/home/xtreamcodes/iptv_xtream_codes/php/sbin/php-fpm
Last edited: