1
0
mirror of https://github.com/fHDHR/fHDHR_NextPVR.git synced 2025-12-06 12:26:57 -05:00

Patch M3U response to audio/x-mpegurl

This commit is contained in:
deathbybandaid 2020-11-19 08:37:45 -05:00
parent 0c58ba0604
commit 873d58fa3a

View File

@ -6,7 +6,7 @@ from io import StringIO
class M3U():
endpoints = ["/api/m3u", "/api/channels.m3u"]
endpoint_name = "api_m3u"
xmltv_xml = None
endpoint_methods = ["GET", "POST"]
def __init__(self, fhdhr):
self.fhdhr = fhdhr
@ -75,7 +75,7 @@ class M3U():
return Response(status=200,
response=channels_m3u,
mimetype='text/plain')
mimetype='audio/x-mpegurl')
if redirect_url:
return redirect(redirect_url + "?retmessage=" + urllib.parse.quote("%s Success" % method))