34 lines
768 B
Python
34 lines
768 B
Python
|
|
|
|
class OriginChannels():
|
|
|
|
def __init__(self, fhdhr, origin):
|
|
self.fhdhr = fhdhr
|
|
self.origin = origin
|
|
|
|
def get_channels(self):
|
|
|
|
print(self.origin.channels_json_url)
|
|
|
|
urlopn = self.fhdhr.web.session.get(self.origin.channels_json_url)
|
|
unfiltered_chan_json = urlopn.json()
|
|
|
|
print(unfiltered_chan_json[0])
|
|
print(len(unfiltered_chan_json))
|
|
|
|
filtered_chan_json = unfiltered_chan_json.copy()
|
|
for filter in ["country"]:
|
|
|
|
filterconf = self.fhdhr.config.dict["origin"]["filter_%s" % filter]
|
|
print(filterconf)
|
|
|
|
return
|
|
|
|
channel_list = []
|
|
|
|
return channel_list
|
|
|
|
def get_channel_stream(self, chandict):
|
|
streamurl = ""
|
|
return streamurl
|