mirror of
https://github.com/chibicitiberiu/ytsm.git
synced 2024-02-24 05:43:31 +00:00
12 lines
331 B
Python
12 lines
331 B
Python
|
from YtManagerApp.services.providers.video_provider import VideoProvider
|
||
|
|
||
|
|
||
|
class VideoProviderManager(object):
|
||
|
|
||
|
def __init__(self):
|
||
|
self._providers: Dict[str, VideoProvider] = {}
|
||
|
|
||
|
def register_provider(self, provider: VideoProvider):
|
||
|
pid = provider.get_provider_id()
|
||
|
self._providers[pid] = provider
|