How weebzone/telegram-stremio works
Telegram Stremio Media Server turns files in Telegram channels into an indexed library served to Stremio/Nuvio. The main path is channel ingestion, metadata enrichment and indexing, catalog discovery, then authenticated streaming; the web panel and bot also manage configuration and access. The README documents these capabilities, while the source index confirms several module references. Some major branches are represented by their module paths because their implementation excerpts were not supplied; their internal wiring is not inferred.
Main entry points: stream_routes.py Stream delivery · stremio_routes.py Stremio catalogs · receiver.py Message receiver · api_routes.py Web administration
Components 23
Ingestion & Library
- Message receiver
Backend/pyrofork/plugins/receiver.py - Library scanning
Backend/helper/scan_manager.py - Metadata resolution
Backend/helper/metadata - Multipart media
Backend/helper/split_files.py - Media database
Backend/helper/database.py
Catalog & Discovery
- Stremio catalogs
Backend/fastapi/routes/stremio_routes.py - Global search
Backend/helper/global_search.py - Custom catalogs
Backend/helper/auto_catalog.py
Playback & Access
- Stream delivery
Backend/fastapi/routes/stream_routes.py - Telegram clients
Backend/pyrofork/bot.py - Access tokens
Backend/fastapi/security/tokens.py - Subtitle handling
Backend/helper/subtitles.py - WebDAV access
Backend/fastapi/routes/webdav_routes.py
Management & Operations
- Web administration
Backend/fastapi/routes/api_routes.py - Server settings
Backend/helper/settings_manager.py - Subscriptions
Backend/pyrofork/plugins/subscription.py - Activity analytics
Backend/helper/analytics.py - Announcements
Backend/helper/announcer.py
External Services
- Metadata providers
Backend/helper/metadata/providers - Cloudflare streaming
Backend/helper/cf_stream.py
Other components
- Telegram contributors
- Media channels
- Stremio / Nuvio
Connections 28
- Telegram contributors → Media channels: forwards media
- Media channels → Message receiver: provides messages
- Message receiver → Media database: indexes media
Backend/pyrofork/plugins/receiver.py - Message receiver → Metadata resolution: resolves details
Backend/pyrofork/plugins/receiver.py - Message receiver → Multipart media: handles parts
Backend/pyrofork/plugins/receiver.py - Library scanning → Media database: updates index
Backend/helper/scan_manager.py - Library scanning → Metadata resolution: resolves details
Backend/helper/scan_manager.py - Metadata resolution → Metadata providers: queries providers
Backend/helper/metadata/__init__.py - Stremio / Nuvio → Stremio catalogs: requests catalogs
- Stremio catalogs → Media database: reads library
Backend/fastapi/routes/stremio_routes.py - Stremio catalogs → Global search: searches channels
Backend/fastapi/routes/stremio_routes.py - Stremio catalogs → Custom catalogs: serves catalogs
- Stremio catalogs → Stream delivery: offers playback
- Stremio / Nuvio → Stream delivery: requests streams
- Stream delivery → Access tokens: verifies access
Backend/fastapi/routes/stream_routes.py - Stream delivery → Telegram clients: fetches media
Backend/fastapi/routes/stream_routes.py - Stream delivery → Multipart media: streams multipart
Backend/fastapi/routes/stream_routes.py - Stream delivery → Activity analytics: tracks usage
Backend/fastapi/routes/stream_routes.py - Stream delivery → Cloudflare streaming: uses proxy mode
- Stremio catalogs → Subtitle handling: provides subtitles
Backend/fastapi/routes/stremio_routes.py - WebDAV access → Stream delivery: reuses streaming
Backend/fastapi/routes/webdav_routes.py - Web administration → Server settings: updates settings
Backend/fastapi/routes/api_routes.py - Web administration → Media database: manages library
Backend/fastapi/routes/api_routes.py - Web administration → Activity analytics: shows activity
Backend/fastapi/routes/api_routes.py - Server settings → Telegram clients: configures clients
Backend/helper/settings_manager.py - Telegram contributors → Web administration: manages server
- Telegram contributors → Subscriptions: manages access
- Telegram clients → Announcements: announces content
Backend/helper/announcer.py