@dominevo/addon-media-library 0.1.12 → 0.1.13
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/CHANGELOG.md +6 -0
- package/dist/media-library.addon.js +18 -4
- package/dist/media-library.addon.mjs +18 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.1.13] - 2026-12-03
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- A malformed person in a TMDB answer is skipped instead of failing the whole season and pausing TMDB for the scan.
|
|
15
|
+
|
|
10
16
|
## [0.1.12] - 2026-12-03
|
|
11
17
|
|
|
12
18
|
### Changed
|
|
@@ -13734,6 +13734,20 @@ var TranslationsSchema = object({ translations: array(object({
|
|
|
13734
13734
|
overview: string().nullish()
|
|
13735
13735
|
}).nullish()
|
|
13736
13736
|
})) });
|
|
13737
|
+
/**
|
|
13738
|
+
* A list parsed per entry: an entry that does not parse is dropped and the rest kept, so one
|
|
13739
|
+
* malformed person never fails the whole response. (No logger reaches this module, so the drop is silent.)
|
|
13740
|
+
*/
|
|
13741
|
+
function lenientArray(schema) {
|
|
13742
|
+
return array(unknown()).transform((items) => {
|
|
13743
|
+
const kept = [];
|
|
13744
|
+
for (const item of items) {
|
|
13745
|
+
const parsed = schema.safeParse(item);
|
|
13746
|
+
if (parsed.success) kept.push(parsed.data);
|
|
13747
|
+
}
|
|
13748
|
+
return kept;
|
|
13749
|
+
});
|
|
13750
|
+
}
|
|
13737
13751
|
var PersonSchema = object({
|
|
13738
13752
|
id: number().int(),
|
|
13739
13753
|
name: string().nullish(),
|
|
@@ -13751,8 +13765,8 @@ var CrewEntrySchema = PersonSchema.extend({
|
|
|
13751
13765
|
jobs: array(object({ job: string().nullish() })).nullish()
|
|
13752
13766
|
});
|
|
13753
13767
|
var CreditsSchema = object({
|
|
13754
|
-
cast:
|
|
13755
|
-
crew:
|
|
13768
|
+
cast: lenientArray(CastEntrySchema).nullish(),
|
|
13769
|
+
crew: lenientArray(CrewEntrySchema).nullish()
|
|
13756
13770
|
});
|
|
13757
13771
|
/** `release_dates` (movie): per country, a list of releases that may carry a certification. */
|
|
13758
13772
|
var ReleaseDatesSchema = object({ results: array(object({
|
|
@@ -13800,8 +13814,8 @@ var SeasonSchema = object({ episodes: array(object({
|
|
|
13800
13814
|
overview: string().nullish(),
|
|
13801
13815
|
still_path: string().nullish(),
|
|
13802
13816
|
runtime: number().nullish(),
|
|
13803
|
-
guest_stars:
|
|
13804
|
-
crew:
|
|
13817
|
+
guest_stars: lenientArray(CastEntrySchema).nullish(),
|
|
13818
|
+
crew: lenientArray(CrewEntrySchema).nullish()
|
|
13805
13819
|
})) });
|
|
13806
13820
|
/** Waited when TMDB says 429 and names no time. */
|
|
13807
13821
|
var TMDB_DEFAULT_RETRY_WAIT_MS = 2e3;
|
|
@@ -13730,6 +13730,20 @@ var TranslationsSchema = object({ translations: array(object({
|
|
|
13730
13730
|
overview: string().nullish()
|
|
13731
13731
|
}).nullish()
|
|
13732
13732
|
})) });
|
|
13733
|
+
/**
|
|
13734
|
+
* A list parsed per entry: an entry that does not parse is dropped and the rest kept, so one
|
|
13735
|
+
* malformed person never fails the whole response. (No logger reaches this module, so the drop is silent.)
|
|
13736
|
+
*/
|
|
13737
|
+
function lenientArray(schema) {
|
|
13738
|
+
return array(unknown()).transform((items) => {
|
|
13739
|
+
const kept = [];
|
|
13740
|
+
for (const item of items) {
|
|
13741
|
+
const parsed = schema.safeParse(item);
|
|
13742
|
+
if (parsed.success) kept.push(parsed.data);
|
|
13743
|
+
}
|
|
13744
|
+
return kept;
|
|
13745
|
+
});
|
|
13746
|
+
}
|
|
13733
13747
|
var PersonSchema = object({
|
|
13734
13748
|
id: number().int(),
|
|
13735
13749
|
name: string().nullish(),
|
|
@@ -13747,8 +13761,8 @@ var CrewEntrySchema = PersonSchema.extend({
|
|
|
13747
13761
|
jobs: array(object({ job: string().nullish() })).nullish()
|
|
13748
13762
|
});
|
|
13749
13763
|
var CreditsSchema = object({
|
|
13750
|
-
cast:
|
|
13751
|
-
crew:
|
|
13764
|
+
cast: lenientArray(CastEntrySchema).nullish(),
|
|
13765
|
+
crew: lenientArray(CrewEntrySchema).nullish()
|
|
13752
13766
|
});
|
|
13753
13767
|
/** `release_dates` (movie): per country, a list of releases that may carry a certification. */
|
|
13754
13768
|
var ReleaseDatesSchema = object({ results: array(object({
|
|
@@ -13796,8 +13810,8 @@ var SeasonSchema = object({ episodes: array(object({
|
|
|
13796
13810
|
overview: string().nullish(),
|
|
13797
13811
|
still_path: string().nullish(),
|
|
13798
13812
|
runtime: number().nullish(),
|
|
13799
|
-
guest_stars:
|
|
13800
|
-
crew:
|
|
13813
|
+
guest_stars: lenientArray(CastEntrySchema).nullish(),
|
|
13814
|
+
crew: lenientArray(CrewEntrySchema).nullish()
|
|
13801
13815
|
})) });
|
|
13802
13816
|
/** Waited when TMDB says 429 and names no time. */
|
|
13803
13817
|
var TMDB_DEFAULT_RETRY_WAIT_MS = 2e3;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dominevo/addon-media-library",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.13",
|
|
4
4
|
"description": "The self-hosted media library: a catalogue built from the arr apps and plain folders, probed files, per-user progress, direct play with Range and a native /media app in the viewer.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"dominevo",
|