mirror of
https://github.com/wukko/cobalt.git
synced 2025-01-12 20:25:06 +01:00
a typo just broke everything
This commit is contained in:
parent
be21c86d89
commit
8dcb6d8ea7
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@ export default function (inHost, inURL) {
|
||||||
|
|
||||||
switch(host) {
|
switch(host) {
|
||||||
case "youtube":
|
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 = url.split("?")[0].replace("www.", "");
|
||||||
url = `https://youtube.com/watch?v=${url.replace("https://youtube.com/live/", "")}`
|
url = `https://youtube.com/watch?v=${url.replace("https://youtube.com/live/", "")}`
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue