Add discovery

This commit is contained in:
Nirvana
2026-02-28 23:15:32 +01:00
parent 5a85cb8bca
commit 279c52ee5a
3 changed files with 21 additions and 0 deletions
+17
View File
@@ -10,6 +10,7 @@ from .catchup_operations import CatchupOperations
from .channel_operations import ChannelOperations
from .drm_operations import DRMOperations
from .epg_operations import EPGOperations
from .event_operations import EventOperations
from .models import StreamingChannel
from .provider_registry import ProviderRegistry
from .subscription_operations import SubscriptionOperations
@@ -32,6 +33,7 @@ class ProviderManager:
self.drm_ops = DRMOperations(self.registry)
self.catchup_ops = CatchupOperations(self.registry, self.drm_ops)
self.subscription_ops = SubscriptionOperations(self.registry)
self.event_ops = EventOperations(self.registry)
# Backward compatibility - expose managers directly
self.drm_plugin_manager = self.drm_ops.drm_plugin_manager
@@ -207,6 +209,21 @@ class ProviderManager:
def get_all_catchup_capabilities(self) -> Dict[str, Dict]:
return self.catchup_ops.get_all_catchup_capabilities()
# ==========================================================================
# EVENT OPERATIONS (delegate to EventOperations)
# ==========================================================================
def get_events(
self,
provider_name: str,
start_time=None,
end_time=None,
):
return self.event_ops.get_events(provider_name, start_time, end_time)
def get_all_events(self, start_time=None, end_time=None):
return self.event_ops.get_all_events(start_time, end_time)
# ==========================================================================
# SUBSCRIPTION OPERATIONS (delegate to SubscriptionOperations)
# ==========================================================================