mirror of
https://github.com/fHDHR/fHDHR_NextPVR.git
synced 2025-12-06 16:16:58 -05:00
Patch M3U response to audio/x-mpegurl
This commit is contained in:
parent
0c58ba0604
commit
873d58fa3a
@ -6,7 +6,7 @@ from io import StringIO
|
|||||||
class M3U():
|
class M3U():
|
||||||
endpoints = ["/api/m3u", "/api/channels.m3u"]
|
endpoints = ["/api/m3u", "/api/channels.m3u"]
|
||||||
endpoint_name = "api_m3u"
|
endpoint_name = "api_m3u"
|
||||||
xmltv_xml = None
|
endpoint_methods = ["GET", "POST"]
|
||||||
|
|
||||||
def __init__(self, fhdhr):
|
def __init__(self, fhdhr):
|
||||||
self.fhdhr = fhdhr
|
self.fhdhr = fhdhr
|
||||||
@ -75,7 +75,7 @@ class M3U():
|
|||||||
|
|
||||||
return Response(status=200,
|
return Response(status=200,
|
||||||
response=channels_m3u,
|
response=channels_m3u,
|
||||||
mimetype='text/plain')
|
mimetype='audio/x-mpegurl')
|
||||||
|
|
||||||
if redirect_url:
|
if redirect_url:
|
||||||
return redirect(redirect_url + "?retmessage=" + urllib.parse.quote("%s Success" % method))
|
return redirect(redirect_url + "?retmessage=" + urllib.parse.quote("%s Success" % method))
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user