32 lines
903 B
Python
32 lines
903 B
Python
|
|
|
|
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=national"
|
|
urlopn = self.fhdhr.web.session.get(url)
|
|
stirr_chan_list = urlopn.json()
|
|
|
|
print(stirr_chan_list["channel"][0])
|
|
|
|
channel_list = []
|
|
|
|
return channel_list
|
|
|
|
def get_channel_stream(self, chandict):
|
|
streamurl = ""
|
|
return streamurl
|