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

This commit is contained in:
PikachuEXE 2023-08-26 23:58:23 +08:00 committed by GitHub
parent 356c4a07c2
commit 16aee6e094
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

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)) {