mirror of
https://github.com/wukko/cobalt.git
synced 2024-11-05 07:49:58 +00: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) {
|
||||
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…
Reference in a new issue