mirror of
https://github.com/fHDHR/fHDHR_NextPVR.git
synced 2025-12-06 05:36:59 -05:00
test
This commit is contained in:
parent
1fee52e975
commit
92c4de2fe7
@ -251,8 +251,7 @@ class HDHR_HTTP_Server():
|
||||
if 'method' in list(request.args.keys()):
|
||||
if 'channel' in list(request.args.keys()):
|
||||
|
||||
station_list = hdhr.serviceproxy.get_channel_streams()
|
||||
channelUri = station_list[str(request.args["channel"])]
|
||||
channelUri = hdhr.serviceproxy.get_channel_stream(str(request.args["channel"]))
|
||||
if not channelUri:
|
||||
abort(404)
|
||||
|
||||
|
||||
@ -181,6 +181,16 @@ class proxyserviceFetcher():
|
||||
total_channels += 1
|
||||
return total_channels
|
||||
|
||||
def get_channel_stream(self, id):
|
||||
url = ('%s%s:%s/live?channel=%s&client=%s' %
|
||||
("https://" if self.config["nextpvr"]["ssl"] else "http://",
|
||||
self.config["nextpvr"]["address"],
|
||||
str(self.config["nextpvr"]["port"]),
|
||||
str(id),
|
||||
str(id),
|
||||
))
|
||||
return url
|
||||
|
||||
def get_channel_streams(self):
|
||||
streamdict = {}
|
||||
for c in self.get_channels():
|
||||
|
||||
Loading…
Reference in New Issue
Block a user