3 Commits
Author SHA1 Message Date
Sergey Samsonov 6ab8025c05 Handle unknown spouse sex values (#72)
## Summary

Handle unexpected `UNKNOWN` values in `PersonResponse.spouses[].sex`.

The Kinopoisk API can return `"UNKNOWN"` even though the generated enum
only contains `MALE` and `FEMALE`. This currently causes deserialization
of the entire person response to fail.

## Changes

- Add a dedicated converter for `PersonResponse_spousesSex`.
- Preserve normal handling of `MALE` and `FEMALE`.
- Map unsupported values to an internal fallback enum value.
- Add a regression test for `"UNKNOWN"`.

## Testing

- All 13 automated tests pass.
2026-07-22 18:41:08 +03:00
Sergey Samsonov 78b0f03e94 Skip staff entries without names (#71)
## Summary

Skip Kinopoisk staff entries that do not contain either a Russian or
English name.

Jellyfin rejects `PersonInfo` objects with an empty `Name`, which
currently causes metadata refreshes to fail with:

`The value cannot be an empty string. (Parameter 'person.Name')`

## Changes

- Filter out staff entries with empty or whitespace-only names.
- Keep valid Russian and English fallback names.
- Preserve person sort order after filtering.
- Add a regression test.

## Testing

- All 13 automated tests pass.
2026-07-22 18:40:16 +03:00
Sergey Samsonov aa0c6fea60 Dispose image URL validation requests and responses (#70)
## Summary

Dispose `HttpRequestMessage` and `HttpResponseMessage` instances created
while validating remote image URLs.

This prevents connections from remaining in `CLOSE_WAIT` during metadata
and image refreshes.

## Changes

* Dispose each image validation request.
* Dispose each image validation response.
* Add a regression test covering request and response disposal.

## Testing

* All 13 automated tests pass.
* Tested with Jellyfin 10.11.11.
* Performed a full metadata and image refresh for approximately 167
movies.
* Tested newly added movies and repeated metadata replacement.
* `ESTABLISHED` connections closed normally.
* `CLOSE_WAIT` remained at or near zero.
* No `RemoteImageUrlSanitizer` HTTP timeouts occurred.
2026-07-22 18:38:31 +03:00