Exemplo n.º 1
0
    def update_stream(self, stream: IStream):
        if not stream:
            return None

        stream.save(self._settings)
        stream_object = self.find_stream_by_id(stream.id)
        if not stream_object:
            return None

        stream_object._stream = stream
        self._notify_stream_updated(stream_object)
Exemplo n.º 2
0
 def update_stream(self, stream: IStream):
     stream.save()
     stream_object = self.find_stream_by_id(stream.id)
     if stream_object:
         stream_object.stable()