How chamchenko/plugin.video.nbainternational works
Main Components
a. Client Layer:
• Kodi Media Center
• NBA League Pass Plugin (your addon)
b. Service Layer:
• NBA International League Pass API
• NBA Content Delivery Network (CDN)
c. Authentication Layer:
• NBA League Pass Authentication Service
Core Plugin Components (based on the lib directory)
• Main Controller (main.py)
• Authentication Handler (auth.py)
• Content Handlers:
• Games Handler (games.py)
• NBA TV Handler (nba_tv.py)
• Video Handler (videos.py)
• Series Handler (series.py)
• Players/Teams Handler (players_teams.py)
• Search Handler (search.py)
Key Relationships
a. User Flow:
• Kodi UI → Plugin Main Controller
• Main Controller → Specific Handlers
• Handlers → NBA APIs
b. Authentication Flow:
• Auth Handler → NBA Authentication Service
• Auth Token distribution to other handlers
Additional Elements
A configuration section showing:
• Settings.xml integration
• Language resource files
• Media resources
Important Notes
• A clear distinction between local (plugin) components and external (NBA) services
• How the tools.py and vars.py support other modules
• Where content caching might occur
• Points where user credentials are required
Technical Details
• Protocol indicators (HTTPS, streaming protocols)
• Content type indicators (Live streams, VOD, metadata)
• Configuration dependencies