How apanzinc/classnews works
ClassNEWS is a desktop CCTV news app: users browse news sources and episodes, then play videos, with configurable playback and system notifications. Its runtime also supports classnews:// requests and an HTTP plugin API. The plugin manager dispatches news operations to source plugins; video lookup and HLS downloading are separate stages. UI pages and player components are represented at their exact tree paths, but their wiring is not shown in the sampled source, so those links are left out. Other unsampled README capabilities, including themes and settings, are preserved without asserting implementation details.
Main entry points: plugin_manager.py Plugin manager · main.qml Main window · VideoPlayerWindow.qml Video player UI · download_manager.py Download manager
Components 19
Desktop app
- App runtime
main.py - Main window
main.qml - News pages
pages - Settings and themes
pages/Settings.qml - System notifications
components/VideoNotificationWindow.qml
News sources
- Plugin manager
core/plugin_manager.py - Plugin interface
core/plugin_interface.py - Morning news source
plugins/morning_news/plugin.py
Video playback
- Video player UI
pages/VideoPlayerWindow.qml - CCTV video lookup
cctv_video.py - Download manager
download_manager.py - HLS downloader
hls_downloader.py - Download dialog
components/DownloadDialog.qml - Video notification dialog
components/VideoNotificationDialog.qml
External interfaces
- Plugin HTTP API
api/plugin_api.py - classnews protocol
main.py
Other components
- App user
- External API client
- Third-party app
Connections 16
- App user → Main window: uses
README.md - Main window → News pages: presents
- Main window → Settings and themes: configures
- News pages → Video player UI: opens playback
- App runtime → Plugin manager: initializes
- Plugin manager → Plugin interface: implements contract
core/plugin_manager.py - Plugin manager → Morning news source: dispatches news
core/plugin_manager.py - Plugin HTTP API → Plugin manager: routes requests
api/plugin_api.py - External API client → Plugin HTTP API: calls HTTP API
- Third-party app → classnews protocol: invokes playback
README.md - classnews protocol → CCTV video lookup: resolves video
main.py - Video player UI → Download manager: requests downloads
- Download dialog → Download manager: controls downloads
- Download manager → HLS downloader: downloads HLS
download_manager.py - App runtime → System notifications: sends alerts
- Video player UI → Video notification dialog: shows alerts