as you know, the stream in youtube changes their url a lot. I made this script so that he found the url autmatically by searching just key words of a live, as the example here of the channel France 24 in Arabic.
PHP:
http://127.0.0.1:port/480p.php?searchquery=france24,arabe,live