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)]: