Skip to content

Clear metadata provider cache when provider parts are registered - #17525

Merged
crobibero merged 1 commit into
jellyfin:masterfrom
rlauuzo:master
Aug 8, 2026
Merged

crobibero merged 1 commit into
jellyfin:masterfrom
rlauuzo:master

Conversation

@rlauuzo

@rlauuzo rlauuzo commented Aug 3, 2026 •

Copy link
Copy Markdown
Contributor

Changes

AddParts replaces _metadataProviders but never invalidated _metadataProviderCache, so a second call would keep serving provider arrays from the previous registration. ClearMetadataProviderCache() was added for this but had no callers. This calls it at the end of AddParts. Not a problem during normal startup, where AddParts runs once before anything populates the cache, but nothing enforces that single-call assumption.

Code assistance

No.

Issues

N/A

AddParts replaces _metadataProviders but left _metadataProviderCache
holding provider arrays from the previous registration. Invalidate the
cache so repeated AddParts calls cannot serve stale providers, and give
the previously uncalled ClearMetadataProviderCache its intended caller.
Copilot AI review requested due to automatic review settings August 3, 2026 10:02

This comment was marked as low quality.

@sonarqubecloud

sonarqubecloud Bot commented Aug 3, 2026

Copy link
Copy Markdown

@jellyfin-bot

Copy link
Copy Markdown
Contributor

Jellyfin API (v 12.0.0)


Result


No differences. Specifications are equivalent

@Shadowghost

Copy link
Copy Markdown
Contributor

Please fill out the PR template.

@rlauuzo

rlauuzo commented Aug 6, 2026

Copy link
Copy Markdown
Contributor Author

Please fill out the PR template.

Okay.

@crobibero crobibero moved this from Review to Approved in Jellyfin v12 Aug 6, 2026
@crobibero
crobibero merged commit eee8180 into jellyfin:master Aug 8, 2026
16 checks passed
@github-project-automation github-project-automation Bot moved this from Approved to Done in Jellyfin v12 Aug 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

7 participants