there is plenty of youtube scripts to pull live m3u8 and restream via xc ui. mine pulls live stream id from channel url cos channel ids keep changing every few days.
make folder youtube under /home/xtreamcodes/iptv_xtream_codes/wwwdir on any xc lb make sure your server have curl 4 to work.
or u make youtube folder on any non xc ui under var/www/html u need php and curl installed put pull.php and youtube.php files under youtube folder.
now v make link to pull m3u8 url .
for example skynews and euro news homepage url on youtube is
h t t p s://youtube.com/c/SkyNews
h t t p s://youtube.com/EuronewsUSA
v make link
http://server ip where script is/youtube/pull.php?channel=c/SkyNews
http://server ip where script is/youtube/pull.php?channel=EuronewsUSA
if v put script under xc ui lb v make link
http://server ip where script is:http port of xc lb/youtube/pull.php?channel=c/SkyNews
http://server ip where script is:http port of xc lb/youtube/pull.php?channel=EuronewsUSA
for xample
add that link in xc ui panel use user agent always
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36
i hope u guys get my point .
enjoy
make folder youtube under /home/xtreamcodes/iptv_xtream_codes/wwwdir on any xc lb make sure your server have curl 4 to work.
or u make youtube folder on any non xc ui under var/www/html u need php and curl installed put pull.php and youtube.php files under youtube folder.
now v make link to pull m3u8 url .
for example skynews and euro news homepage url on youtube is
h t t p s://youtube.com/c/SkyNews
h t t p s://youtube.com/EuronewsUSA
v make link
http://server ip where script is/youtube/pull.php?channel=c/SkyNews
http://server ip where script is/youtube/pull.php?channel=EuronewsUSA
if v put script under xc ui lb v make link
http://server ip where script is:http port of xc lb/youtube/pull.php?channel=c/SkyNews
http://server ip where script is:http port of xc lb/youtube/pull.php?channel=EuronewsUSA
for xample
add that link in xc ui panel use user agent always
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36
i hope u guys get my point .
enjoy