I found a better solution, maybe it can help somebody
replace "watch?v=" by "v/" and it will work
var url = url.replace("watch?v=", "v/");
I found a better solution, maybe it can help somebody
replace "watch?v=" by "v/" and it will work
var url = url.replace("watch?v=", "v/");