From d03e575f0b787eb5aa175ab55cda7e39ef887e0b Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Sat, 30 Jan 2021 11:10:16 -0500 Subject: [PATCH] Repair m3u/w3u --- fHDHR_web/api/m3u.py | 2 +- fHDHR_web/api/w3u.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fHDHR_web/api/m3u.py b/fHDHR_web/api/m3u.py index f39054c..4d1449f 100644 --- a/fHDHR_web/api/m3u.py +++ b/fHDHR_web/api/m3u.py @@ -63,7 +63,7 @@ class M3U(): channel_items.append(channel_obj) else: return "Channel Disabled" - elif not origin and channel == "all" and str(channel) in [str(x) for x in self.fhdhr.device.channels.get_channel_list("id")]: + elif not origin and channel == "all": fileName = "channels.m3u" for origin in list(self.fhdhr.origins.origins_dict.keys()): for fhdhr_id in [x["id"] for x in self.fhdhr.device.channels.get_channels(origin)]: diff --git a/fHDHR_web/api/w3u.py b/fHDHR_web/api/w3u.py index 390a01a..83fe0c4 100644 --- a/fHDHR_web/api/w3u.py +++ b/fHDHR_web/api/w3u.py @@ -61,7 +61,7 @@ class W3U(): channel_items.append(channel_obj) else: return "Channel Disabled" - elif not origin and channel == "all" and str(channel) in [str(x) for x in self.fhdhr.device.channels.get_channel_list("id")]: + elif not origin and channel == "all": fileName = "channels.w3u" for origin in list(self.fhdhr.origins.origins_dict.keys()): for fhdhr_id in [x["id"] for x in self.fhdhr.device.channels.get_channels(origin)]: