fHDHR_IPTVorg-US/origin/origin_channels.py
deathbybandaid 4e2b3c992f test
2020-12-09 08:45:58 -05:00

33 lines
711 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))
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