class OriginChannels(): def __init__(self, fhdhr, origin): self.fhdhr = fhdhr self.origin = origin self.base_api_url = "https://ott-gateway-stirr.sinclairstoryline.com/api/rest/v3/" "https://ott-gateway-stirr.sinclairstoryline.com/api/rest/v3/channels/stirr?station=abc3340" "https://ott-gateway-stirr.sinclairstoryline.com/api/rest/v3/status/40b80f75-2efc-49af-813b-2a674e69ea59" "https://ott-gateway-stirr.sinclairstoryline.com/api/rest/v3/program/stirr/ott/" def get_channels(self): url = self.base_api_url + "channels/stirr?station=abc3340" urlopn = self.fhdhr.web.session.get(url) stirr_chan_list = urlopn.json() print(len(stirr_chan_list["channel"])) url = self.base_api_url + "channels/stirr?station=national" urlopn = self.fhdhr.web.session.get(url) stirr_chan_list = urlopn.json() print(len(stirr_chan_list["channel"])) channel_list = [] return channel_list def get_channel_stream(self, chandict): streamurl = "" return streamurl