Files
script.service.ultimate/lib/streaming_providers/base/ui/__init__.py
T

33 lines
1.0 KiB
Python
Raw Normal View History

2025-11-13 16:36:39 +01:00
# ============================================================================
# FILE 1: streaming_providers/base/ui/__init__.py
# ============================================================================
"""
UI notification system for streaming providers
Provides adapters for different UI environments (Kodi, console, web, etc.)
"""
from .notification_factory import NotificationFactory
2026-01-06 16:41:03 +01:00
from .notification_interface import NotificationInterface, NotificationResult
2025-11-13 16:36:39 +01:00
# Conditional imports - only import if environment supports them
try:
from .kodi_notification_adapter import KodiNotificationAdapter
2026-01-06 16:41:03 +01:00
2025-11-13 16:36:39 +01:00
__all__ = [
2026-01-06 16:41:03 +01:00
"NotificationInterface",
"NotificationResult",
"NotificationFactory",
"KodiNotificationAdapter",
"ConsoleNotificationAdapter",
2025-11-13 16:36:39 +01:00
]
except ImportError:
# Kodi not available
__all__ = [
2026-01-06 16:41:03 +01:00
"NotificationInterface",
"NotificationResult",
"NotificationFactory",
"ConsoleNotificationAdapter",
2025-11-13 16:36:39 +01:00
]
2026-01-06 16:41:03 +01:00
from .console_notification_adapter import ConsoleNotificationAdapter