예제 #1
0
 def make_stream(cls, settings: ServiceSettings, client: ServiceClient):
     vod = VodRelayStream(name=IStreamObject.DEFAULT_STREAM_NAME,
                          tvg_logo=IStreamObject.DEFAULT_ICON_URL)
     vod.loop = False
     vod.input = [InputUrl(id=InputUrl.generate_id())]
     vod.output = [OutputUrl(id=OutputUrl.generate_id())]
     return cls(vod, settings, client)
예제 #2
0
파일: forms.py 프로젝트: 5l1v3r1/pyfastotv
 def update_entry(self, entry: VodRelayStream):
     entry.description = self.description.data
     entry.trailer_url = self.trailer_url.data
     entry.user_score = self.user_score.data
     entry.prime_date = self.prime_date.data
     entry.country = self.country.data
     entry.duration = self.duration.data
     entry.vod_type = self.vod_type.data
     return RelayStreamForm.update_entry(self, entry)
예제 #3
0
파일: forms.py 프로젝트: 5l1v3r1/pyfastotv
 def make_entry(self):
     return self.update_entry(VodRelayStream())
예제 #4
0
 def make_stream(cls, settings: ServiceSettings, client: ServiceClient):
     vod = VodRelayStream()
     vod.loop = False
     vod.input = [InputUrl(id=InputUrl.generate_id())]
     vod.output = [OutputUrl(id=OutputUrl.generate_id())]
     return cls(vod, settings, client)