From 873d58fa3a36a5a2a9e8b07a48a24610f8ab5b0f Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Thu, 19 Nov 2020 08:37:45 -0500 Subject: [PATCH] Patch M3U response to audio/x-mpegurl --- fHDHR/http/api/m3u.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fHDHR/http/api/m3u.py b/fHDHR/http/api/m3u.py index c5d05e0..ed06ff4 100644 --- a/fHDHR/http/api/m3u.py +++ b/fHDHR/http/api/m3u.py @@ -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))