Merge pull request #639 from jake-penguins/master

Fix YouTube livestream chat breaking on embed only mode
このコミットが含まれているのは:
ManeraKai 2023-02-26 09:34:26 +00:00 committed by GitHub
コミット 81b3195444
この署名に対応する既知のキーがデータベースに存在しません
GPGキーID: 4AEE18F83AFDEB23
1個のファイルの変更12行の追加0行の削除

ファイルの表示

@ -155,7 +155,19 @@ function redirect(url, type, initiator, forceRedirection) {
case "freetube": {
return `freetube://https://youtu.be${url.pathname}${url.search}`.replace(/watch\?v=/, "")
}
case "invidious":
case "piped":
case "pipedMaterial":
case "cloudtube": {
if (url.pathname.startsWith("/live_chat")) {
return null;
}
return `${randomInstance}${url.pathname}${url.search}`;
}
case "poketube": {
if (url.pathname.startsWith("/live_chat")) {
return null;
}
if (url.pathname.startsWith('/channel')) {
const reg = /\/channel\/(.*)\/?$/.exec(url.pathname)
if (reg) {