wyzie-lib 2.1.6 → 2.1.8
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.
- package/README.md +2 -3
- package/lib/main.amd.js +2 -0
- package/lib/main.cjs +2 -0
- package/lib/main.d.ts +6 -0
- package/lib/main.iife.js +2 -0
- package/lib/main.js +2 -0
- package/lib/main.umd.cjs +2 -0
- package/package.json +9 -9
package/README.md
CHANGED
|
@@ -72,9 +72,8 @@ for a working example using the VTT parser.
|
|
|
72
72
|
- **QueryParams**: All parameters (optional and required) available for the wyzie-subs API.
|
|
73
73
|
- **SubtitleData**: All returned values from the API with their respective types.
|
|
74
74
|
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-

|
|
75
|
+
Check out the types.ts file
|
|
76
|
+
[here](https://raw.githubusercontent.com/itzCozi/wyzie-lib/refs/heads/main/src/types.ts).
|
|
78
77
|
|
|
79
78
|
<hr />
|
|
80
79
|
|
package/lib/main.amd.js
CHANGED
|
@@ -5,6 +5,7 @@ define(["exports"], function(exports) {
|
|
|
5
5
|
imdb_id,
|
|
6
6
|
season,
|
|
7
7
|
episode,
|
|
8
|
+
encoding,
|
|
8
9
|
language,
|
|
9
10
|
format,
|
|
10
11
|
hi
|
|
@@ -14,6 +15,7 @@ define(["exports"], function(exports) {
|
|
|
14
15
|
id: String(tmdb_id || imdb_id),
|
|
15
16
|
season,
|
|
16
17
|
episode,
|
|
18
|
+
encoding,
|
|
17
19
|
language,
|
|
18
20
|
format,
|
|
19
21
|
hi
|
package/lib/main.cjs
CHANGED
|
@@ -5,6 +5,7 @@ async function constructUrl({
|
|
|
5
5
|
imdb_id,
|
|
6
6
|
season,
|
|
7
7
|
episode,
|
|
8
|
+
encoding,
|
|
8
9
|
language,
|
|
9
10
|
format,
|
|
10
11
|
hi
|
|
@@ -14,6 +15,7 @@ async function constructUrl({
|
|
|
14
15
|
id: String(tmdb_id || imdb_id),
|
|
15
16
|
season,
|
|
16
17
|
episode,
|
|
18
|
+
encoding,
|
|
17
19
|
language,
|
|
18
20
|
format,
|
|
19
21
|
hi
|
package/lib/main.d.ts
CHANGED
|
@@ -17,6 +17,8 @@ export declare type QueryParams = {
|
|
|
17
17
|
season?: number;
|
|
18
18
|
/** Episode number if the content is a series. */
|
|
19
19
|
episode?: number;
|
|
20
|
+
/** Encoding of the subtitle files. */
|
|
21
|
+
encoding?: string;
|
|
20
22
|
/** ISO 3166 code of the subtitle desired. */
|
|
21
23
|
language?: string;
|
|
22
24
|
/** Which subtitle file format you want */
|
|
@@ -51,6 +53,8 @@ export declare type SearchSubtitlesParams = (
|
|
|
51
53
|
}) & {
|
|
52
54
|
/** ISO 3166 code of the subtitle desired. */
|
|
53
55
|
language?: string;
|
|
56
|
+
/** The subtitle file's character encoding. */
|
|
57
|
+
encoding?: string;
|
|
54
58
|
/** Which subtitle file format you want. */
|
|
55
59
|
format?: string;
|
|
56
60
|
/** Determines if you get hearing impaired subtitles. */
|
|
@@ -77,6 +81,8 @@ export declare type SubtitleData = {
|
|
|
77
81
|
url: string;
|
|
78
82
|
/** The format of the subtitle file. */
|
|
79
83
|
format: string;
|
|
84
|
+
/** The subtitle file's character encoding. (UTF-8, ASCII, ETC) */
|
|
85
|
+
encoding: string;
|
|
80
86
|
/** Boolean indicating if the subtitle's is hearing impaired. */
|
|
81
87
|
isHearingImpaired: boolean;
|
|
82
88
|
/** URL to a PNG of the flag of the subtitle's language. */
|
package/lib/main.iife.js
CHANGED
|
@@ -5,6 +5,7 @@ var main = function(exports) {
|
|
|
5
5
|
imdb_id,
|
|
6
6
|
season,
|
|
7
7
|
episode,
|
|
8
|
+
encoding,
|
|
8
9
|
language,
|
|
9
10
|
format,
|
|
10
11
|
hi
|
|
@@ -14,6 +15,7 @@ var main = function(exports) {
|
|
|
14
15
|
id: String(tmdb_id || imdb_id),
|
|
15
16
|
season,
|
|
16
17
|
episode,
|
|
18
|
+
encoding,
|
|
17
19
|
language,
|
|
18
20
|
format,
|
|
19
21
|
hi
|
package/lib/main.js
CHANGED
package/lib/main.umd.cjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wyzie-lib",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.8",
|
|
4
4
|
"icon": "https://i.postimg.cc/L5ppKYC5/cclogo.png",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
@@ -58,17 +58,17 @@
|
|
|
58
58
|
"type": "git",
|
|
59
59
|
"url": "git+https://github.com/itzcozi/wyzie-lib.git"
|
|
60
60
|
},
|
|
61
|
-
"devDependencies": {
|
|
62
|
-
"prettier": "^3.4.2",
|
|
63
|
-
"typescript": "^5.7.3",
|
|
64
|
-
"vite": "^4.5.5",
|
|
65
|
-
"vite-plugin-dts": "^4.5.0",
|
|
66
|
-
"vitest": "^2.1.8"
|
|
67
|
-
},
|
|
68
61
|
"scripts": {
|
|
69
62
|
"build": "vite build && tsc",
|
|
70
63
|
"test": "npx vitest",
|
|
71
64
|
"format": "prettier --log-level warn --write \"{src/**/*.{ts},*.{ts,js,html,css,json,md,xml}}\"",
|
|
72
65
|
"preview": "vite preview"
|
|
66
|
+
},
|
|
67
|
+
"devDependencies": {
|
|
68
|
+
"prettier": "^3.5.1",
|
|
69
|
+
"typescript": "^5.7.3",
|
|
70
|
+
"vite": "^4.5.9",
|
|
71
|
+
"vite-plugin-dts": "^4.5.0",
|
|
72
|
+
"vitest": "^2.1.9"
|
|
73
73
|
}
|
|
74
|
-
}
|
|
74
|
+
}
|