I've added code to extract the YouTube username as well, so anyone using this here can add info about the video owner (or uploader) to downloaded videos. Also, added some preliminary test code for that.
Again, thumbs up, xaicron, for giving us all a Perl alternative to youtube-dl!
Added that the YouTube video user is parsed out and offered as yet another substitution variable in file naming.
Added tests for parsing out of YT user(names), untested, meant as a starting point.
Thanks a patch. But, t/private/video_user.t is broken. Please fix it.
Was a mock up, now works.
Also: we should ask users if it is okay to connect to the Internet for testing!
Please add a prompt() to the Build.PL to ask users if it is okay to connect to the Internet / YouTube server for testing...
Okay. However, if the video was deleted then test will be fail...
I will change the test cases that parse static HTML.