예제 #1
0
 def make_stream(cls, settings: ServiceSettings, client: ServiceClient):
     relay = RelayStream(name=IStreamObject.DEFAULT_STREAM_NAME,
                         tvg_logo=IStreamObject.DEFAULT_ICON_URL)
     relay.input = [InputUrl(id=InputUrl.generate_id())]
     relay.output = [OutputUrl(id=OutputUrl.generate_id())]
     relay.video_parser = constants.DEFAULT_VIDEO_PARSER
     relay.audio_parser = constants.DEFAULT_AUDIO_PARSER
     return cls(relay, settings, client)
예제 #2
0
 def make_stream(cls, settings: ServiceSettings, client: ServiceClient):
     relay = RelayStream(name=IStreamObject.DEFAULT_STREAM_NAME)
     relay.input = [InputUrl.make_stub()]
     relay.output = [OutputUrl.make_stub()]
     IStreamObject.fill_defaults(relay)
     return cls(relay, settings, client)
예제 #3
0
 def make_relay_stream(self) -> RelayStream:
     return RelayStream.make_stream(self._settings)
예제 #4
0
파일: forms.py 프로젝트: 5l1v3r1/pyfastotv
 def update_entry(self, entry: RelayStream):
     entry.video_parser = self.video_parser.data
     entry.audio_parser = self.audio_parser.data
     return super(RelayStreamForm, self).update_entry(entry)
예제 #5
0
파일: forms.py 프로젝트: 5l1v3r1/pyfastotv
 def make_entry(self):
     return self.update_entry(RelayStream())
예제 #6
0
 def make_stream(cls, settings: ServiceSettings, client: ServiceClient):
     relay = RelayStream()
     relay.input = [InputUrl(id=InputUrl.generate_id())]
     relay.output = [OutputUrl(id=OutputUrl.generate_id())]
     return cls(relay, settings, client)
예제 #7
0
 def make_stream(cls, settings: ServiceSettings, client: ServiceClient):
     relay = RelayStream(name=IStreamObject.DEFAULT_STREAM_NAME)
     relay.input = [InputUrl(id=InputUrl.generate_id())]
     relay.output = [OutputUrl(id=OutputUrl.generate_id())]
     return cls(relay, settings, client)