mirror of
https://github.com/wukko/cobalt.git
synced 2025-05-28 04:20:12 +02:00
a typo just broke everything
This commit is contained in:
parent
be21c86d89
commit
8dcb6d8ea7
@ -4,7 +4,7 @@ export default function (inHost, inURL) {
|
||||
|
||||
switch(host) {
|
||||
case "youtube":
|
||||
if (url.startsWith("https://youtube.com/live/") || url.startsWith("https://www.youtube.com/")) {
|
||||
if (url.startsWith("https://youtube.com/live/") || url.startsWith("https://www.youtube.com/live/")) {
|
||||
url = url.split("?")[0].replace("www.", "");
|
||||
url = `https://youtube.com/watch?v=${url.replace("https://youtube.com/live/", "")}`
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user