Autohotkey-COM-Youtube : How get channel id from url?

This should give you the channel ID:

MsgBox, % YouTubeChannelId("https://www.youtube.com/watch?v=YzL0OBjnK8o")
return

YouTubeChannelId(url) {
    hObject := ComObjCreate("WinHttp.WinHttpRequest.5.1")
    hObject.Open("GET", url)
    hObject.Send()
    RegExMatch(hObject.ResponseText, "itemprop=""author"".+?channel\/([^""]+)", ChannelId)
    return ChannelId1
}