def make_stream(cls, settings: ServiceSettings, client: ServiceClient): vod = VodEncodeStream(name=IStreamObject.DEFAULT_STREAM_NAME) vod.loop = False vod.input = [InputUrl.make_stub()] vod.output = [OutputUrl.make_stub()] IStreamObject.fill_defaults(vod) return cls(vod, settings, client)
def make_stream(cls, settings: ServiceSettings, client: ServiceClient): vod = VodEncodeStream(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: VodEncodeStream): 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 EncodeStreamForm.update_entry(self, entry)
def make_vod_encode_stream(self) -> VodEncodeStream: return VodEncodeStream.make_stream(self._settings)
def make_entry(self): return self.update_entry(VodEncodeStream())
def make_stream(cls, settings: ServiceSettings, client: ServiceClient): vod = VodEncodeStream() vod.loop = False vod.input = [InputUrl(id=InputUrl.generate_id())] vod.output = [OutputUrl(id=OutputUrl.generate_id())] return cls(vod, settings, client)