This is a Kodi video addon (plugin.video.themoviedb.helper) that provides rich metadata enrichment, browsing, discovery, player resolution, and synchronization for movies and TV shows. It integrates with multiple external APIs including TMDb, Trakt, TVDb, MDbList, FanartTV, OMDb, and Gemini AI. The architecture follows the Kodi addon pattern with three entry points: a plugin for directory listings, a background service for monitoring and scrobbling, and a script for one-off actions. The codebase is heavily modular with over 200 Python files organized into API wrappers, caching layers, database factories, sync engines, player configuration, and UI dialogs. It features extensive SQLite caching with thread-safe mutex locks, a custom import hook for API key permissions, and a flexible player resolution system based on JSON configuration files. While primarily an application, it includes significant data engineering patterns for caching, incremental syncing, and data transformation.