mirror of
https://github.com/wukko/cobalt.git
synced 2025-05-29 04:50:13 +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) {
|
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…
x
Reference in New Issue
Block a user