class OriginChannels(): def __init__(self, fhdhr, origin): self.fhdhr = fhdhr self.origin = origin def get_channels(self): self.fhdhr.logger.info("Pulling Unfiltered Channels Lists: %s" % self.origin.channels_json_url) urlopn = self.fhdhr.web.session.get(self.origin.channels_json_url) unfiltered_chan_json = urlopn.json() self.fhdhr.logger.info("Found %s Total Channels Lists" % len(unfiltered_chan_json)) filtered_chan_json = unfiltered_chan_json.copy() for filter in ["country", "language"]: filterconf = self.fhdhr.config.dict["origin"]["filter_%s" % filter] if filterconf: if isinstance(filterconf, str): filterconf = [filterconf] self.fhdhr.logger.info("Found %s Enabled %s Filters" % (len(filterconf), filter)) print(filterconf) else: self.fhdhr.logger.info("Found No Enabled %s Filters" % (filter)) return channel_list = [] return channel_list def get_channel_stream(self, chandict): streamurl = "" return streamurl