From 3fb3d04161ef7568b3eeab67382d9f66f0f878bb Mon Sep 17 00:00:00 2001 From: DYefremov Date: Fri, 16 Nov 2018 22:35:47 +0300 Subject: [PATCH] skip options for the lists --- app/eparser/iptv.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/eparser/iptv.py b/app/eparser/iptv.py index e33ed0f5..ff104b9c 100644 --- a/app/eparser/iptv.py +++ b/app/eparser/iptv.py @@ -19,15 +19,12 @@ def parse_m3u(path, profile): with open(path) as file: aggr = [None] * 10 channels = [] - count = 0 name = None fav_id = None for line in file.readlines(): if line.startswith("#EXTINF"): name = line[1 + line.index(","):].strip() - count += 1 - elif count == 1: - count = 0 + elif not line.startswith("#"): if profile is Profile.ENIGMA_2: fav_id = ENIGMA2_FAV_ID_FORMAT.format(StreamType.NONE_TS.value, 1, 0, 0, 0, 0, line.strip().replace(":", "%3a"), name, name, None)