youtube-transcript-plus 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -34,7 +34,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
34
34
  };
35
35
 
36
36
  const DEFAULT_USER_AGENT = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36';
37
- const RE_YOUTUBE = /(?:youtube\.com\/(?:[^\/]+\/.+\/|(?:v|e(?:mbed)?)\/|.*[?&]v=)|youtu\.be\/)([^"&?\/\s]{11})/i;
37
+ const RE_YOUTUBE = /(?:v=|\/|v\/|embed\/|watch\?.*v=|youtu\.be\/|\/v\/|e\/|watch\?.*vi?=|\/embed\/|\/v\/|vi?\/|watch\?.*vi?=|youtu\.be\/|\/vi?\/|\/e\/)([a-zA-Z0-9_-]{11})/i;
38
38
  const RE_XML_TRANSCRIPT = /<text start="([^"]*)" dur="([^"]*)">([^<]*)<\/text>/g;
39
39
 
40
40
  class YoutubeTranscriptTooManyRequestError extends Error {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "youtube-transcript-plus",
3
- "version": "1.0.0",
4
- "description": "Fetch transcript from a youtube video",
3
+ "version": "1.0.2",
4
+ "description": "Fetch transcript from a YouTube video",
5
5
  "type": "module",
6
6
  "main": "dist/youtube-transcript-plus.js",
7
7
  "module": "dist/youtube-transcript-plus.js",
@@ -45,11 +45,11 @@
45
45
  "files": [
46
46
  "dist/*"
47
47
  ],
48
- "repository": "https://github.com/ericmmartin/youtube-transcript.git",
48
+ "repository": "https://github.com/ericmmartin/youtube-transcript-plus.git",
49
49
  "publishConfig": {
50
50
  "access": "public"
51
51
  },
52
- "homepage": "https://github.com/ericmmartin/youtube-transcript",
52
+ "homepage": "https://github.com/ericmmartin/youtube-transcript-plus",
53
53
  "engines": {
54
54
  "node": ">=18.0.0"
55
55
  }