예제 #1
0
 def make_stream(cls, settings: ServiceSettings, client: ServiceClient):
     cat = CatchupStream(name=IStreamObject.DEFAULT_STREAM_NAME)
     cat.input = [InputUrl.make_stub()]
     cat.output = [OutputUrl.make_default_http()]
     IStreamObject.fill_defaults(cat)
     return cls(cat, settings, client)
예제 #2
0
 def make_catchup_stream(self) -> CatchupStream:
     return CatchupStream.make_stream(self._settings)
예제 #3
0
파일: forms.py 프로젝트: 5l1v3r1/pyfastotv
 def update_entry(self, entry: CatchupStream):
     entry.start = self.start.data
     entry.stop = self.stop.data
     return super(CatchupStreamForm, self).update_entry(entry)
예제 #4
0
파일: forms.py 프로젝트: 5l1v3r1/pyfastotv
 def make_entry(self):
     return self.update_entry(CatchupStream())
예제 #5
0
 def make_stream(cls, settings: ServiceSettings, client: ServiceClient):
     cat = CatchupStream()
     cat.input = [InputUrl(id=InputUrl.generate_id())]
     cat.output = [OutputUrl(id=OutputUrl.generate_id())]
     return cls(cat, settings, client)
예제 #6
0
 def make_stream(cls, settings: ServiceSettings, client: ServiceClient):
     cat = CatchupStream(name=IStreamObject.DEFAULT_STREAM_NAME)
     cat.input = [InputUrl(id=InputUrl.generate_id())]
     cat.output = [OutputUrl(id=OutputUrl.generate_id())]
     return cls(cat, settings, client)