vlc playlist plugins has two methods, probe (to check if link is compatible with current script) and parse (that return a table with the metadata) and need some basic vlc methods for debugging and networking (very easy to intergrate, find "vlc.")
Once you integrate it you will have access to media urls of youtube videos and many other platforms supported by vlc but on your project.