* Update URL parser to recognize youtube.com/live/xxxxxxx (#3930)

This commit is contained in:
PikachuEXE
2023-08-26 15:58:23 +00:00
committed by GitHub
parent 356c4a07c2
commit 16aee6e094
+7
View File
@@ -594,6 +594,13 @@ export function getVideoParamsFromUrl(url) {
return paramsObject
}
},
// youtube.com/live
function () {
if (/^\/live\/[\w-]+$/.test(urlObject.pathname)) {
extractParams(urlObject.pathname.replace('/live/', ''))
return paramsObject
}
},
// cloudtube
function () {
if (/^cadence\.(gq|moe)$/.test(urlObject.host) && /^\/cloudtube\/video\/[\w-]+$/.test(urlObject.pathname)) {