Ejemplo n.º 1
0
    def onProviderUpdated(self, media_provider: xbmcmediaimport.MediaProvider):
        self._add_observer(media_provider)

        # make sure the media provider is being observed
        if media_provider.isActive():
            self._start_observer(media_provider)
        else:
            self._stop_observer(media_provider)
Ejemplo n.º 2
0
    def onProviderUpdated(self, mediaProvider: xbmcmediaimport.MediaProvider):
        """Event handler: triggered when a provider is updated in the system, make sure it is being observed

        :param mediaProvider: MediaProvider that was added to the system
        :type mediaProvider: :class:`xbmcmediaimport.MediaProvider`
        """
        self._addObserver(mediaProvider)

        # make sure the media provider is being observed
        if mediaProvider.isActive():
            self._startObserver(mediaProvider)
        else:
            self._stopObserver(mediaProvider)