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)
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)
def make_entry(self): return self.update_entry(VodRelayStream())
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)