How pymedusa/medusa works
Medusa is a self-hosted TV-library manager. Its documented workflow obtains show metadata, searches torrent and Usenet providers, hands selected releases to download clients, then processes and enriches completed media for the library. The graph also preserves the documented episode-management, subtitle, notification, and media-server capabilities. Relationships chiefly follow the README’s workflow description; sampled scheduler and web-handler reference lists support parts of the internal wiring, but most domain implementations were not excerpted.
Main entry points: handler.py Web Interface · process_tv.py Post Processing · show.py Show Management · download_handler.py Download Scheduler
Components 21
User Experience
- Web Interface
medusa/server/web/home/handler.py - Slim Frontend
themes-default/slim/src/app.js - Application Core
medusa/app.py
Show Catalog
- Show Management
medusa/show/show.py - Metadata Indexers
medusa/indexers - Episode Views
medusa/server/web/home/handler.py
Release Acquisition
- Release Parsing
medusa/name_parser/parser.py - Search Providers
medusa/providers - Search and Snatch
medusa/server/web/home/handler.py - Download Scheduler
medusa/schedulers/download_handler.py - Download Clients
medusa/clients
Library Processing
- Post Processing
medusa/process_tv.py - Subtitle Handling
medusa/subtitles.py - Media Library
Integrations
- Media Indexers
medusa/indexers - Anime Mappings
ext/adba/aniDBAbstracter.py - Notifications
medusa/notifiers
Other components
- User
- Provider Services
- Download Client
- Media Server
Connections 24
- User → Web Interface: manages shows
README.md - Slim Frontend → Web Interface: requests actions
- Web Interface → Application Core: uses configuration
medusa/server/web/home/handler.py - Web Interface → Show Management: manages shows
medusa/server/web/home/handler.py - Show Management → Metadata Indexers: retrieves metadata
README.md - Metadata Indexers → Show Management: returns metadata
README.md - Web Interface → Episode Views: serves episode views
medusa/server/web/home/handler.py - Episode Views → Show Management: uses show data
medusa/server/web/home/handler.py - Search and Snatch → Release Parsing: parses releases
- Search and Snatch → Search Providers: searches releases
README.md - Search Providers → Provider Services: queries
README.md - Web Interface → Search and Snatch: starts manual search
medusa/server/web/home/handler.py - Download Scheduler → Search Providers: searches releases
medusa/schedulers/download_handler.py - Download Scheduler → Download Clients: dispatches downloads
medusa/schedulers/download_handler.py - Download Clients → Download Client: submits release
README.md - Download Scheduler → Post Processing: starts processing
medusa/schedulers/download_handler.py - Post Processing → Media Library: organizes media
README.md - Post Processing → Subtitle Handling: enriches episodes
- Subtitle Handling → Media Library: adds subtitles
- Post Processing → Media Indexers: updates library
README.md - Media Indexers → Media Server: notifies library
README.md - Show Management → Anime Mappings: maps anime data
README.md - Post Processing → Notifications: announces downloads
- Notifications → Media Server: sends notifications