Commit e488a15
committed
Sync API metadata endpoints with the full Web UI metadata refresh
The REST API sync endpoints (/api/v1/media/.../sync/ and season/episode
variants) only ever updated title/original_title/localized_title/image,
while the Web UI's "Sync metadata with provider" action also refreshes
genres, core/provider metadata fields, metadata_fetched_at, provider
links, credits, Trakt popularity, and game lengths.
Extract the Web UI's enrichment logic into a shared
enrich_synced_item() and call it from MediaSyncView and
MediaSeasonSyncView (MediaEpisodeSyncView delegates to the latter) so
API syncs match the Web UI's behavior.
Fixes #905
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019CLHUQmKMadyJFkreJ9ViB1 parent 9e2a65f commit e488a15
2 files changed
Lines changed: 208 additions & 147 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| |||
2145 | 2146 | | |
2146 | 2147 | | |
2147 | 2148 | | |
| 2149 | + | |
| 2150 | + | |
| 2151 | + | |
| 2152 | + | |
| 2153 | + | |
| 2154 | + | |
| 2155 | + | |
| 2156 | + | |
| 2157 | + | |
| 2158 | + | |
| 2159 | + | |
| 2160 | + | |
| 2161 | + | |
| 2162 | + | |
| 2163 | + | |
| 2164 | + | |
2148 | 2165 | | |
2149 | 2166 | | |
2150 | 2167 | | |
| |||
3227 | 3244 | | |
3228 | 3245 | | |
3229 | 3246 | | |
| 3247 | + | |
| 3248 | + | |
| 3249 | + | |
| 3250 | + | |
| 3251 | + | |
| 3252 | + | |
| 3253 | + | |
| 3254 | + | |
| 3255 | + | |
| 3256 | + | |
| 3257 | + | |
| 3258 | + | |
| 3259 | + | |
| 3260 | + | |
| 3261 | + | |
| 3262 | + | |
3230 | 3263 | | |
3231 | 3264 | | |
3232 | 3265 | | |
| |||
0 commit comments