discord-player-youtubei
Advanced tools
Comparing version
@@ -435,3 +435,3 @@ "use strict"; | ||
function extractVideoId(vid) { | ||
const YOUTUBE_REGEX2 = /^https:\/\/youtu(\.)?be(\.com)?\/(watch\?v\=)?.{11}(\?|\#)?(.+)?/; | ||
const YOUTUBE_REGEX2 = /^https:\/\/(www\.)?youtu(\.be\/.{11}(.+)?|be\.com\/watch\?v=.{11}(&.+)?)/; | ||
if (!YOUTUBE_REGEX2.test(vid)) throw new Error("Invalid youtube url"); | ||
@@ -438,0 +438,0 @@ let id = new URL(vid).searchParams.get("v"); |
{ | ||
"name": "discord-player-youtubei", | ||
"version": "1.4.3-beta.3", | ||
"version": "1.4.3-beta.4", | ||
"description": "An unofficial package to test the use of youtubei in discord-player v6.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
105772
0.02%