From ff5d25496720dec93305784a60a1c2db225dbd3f Mon Sep 17 00:00:00 2001 From: wonipapa Date: Thu, 31 Aug 2017 17:41:51 +0900 Subject: [PATCH] =?UTF-8?q?KT=ED=95=A8=EC=88=98=EA=B9=8C=EC=A7=80=20?= =?UTF-8?q?=EC=99=84=EC=84=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- epg2xml.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/epg2xml.py b/epg2xml.py index 300af80..eca42fa 100644 --- a/epg2xml.py +++ b/epg2xml.py @@ -285,7 +285,7 @@ def GetEPGFromLG(ChannelInfo): startTime = startTime.strftime('%Y%m%d%H%M%S') rating = 0 if cell[1].find('span', {'class': 'tag cte_all'}).text.strip()=="All" else int(cell[1].find('span', {'class': 'tag cte_all'}).text.strip()) cell[1].find('span', {'class': 'tagGroup'}).decompose() - pattern = '(<재>?)?(.*?)(?;\[(.*)\])?\s?(?:\(([\d,]+)회\))?$' + pattern = '(<재>?)?(.*?)(?:\[(.*)\])?\s?(?:\(([\d,]+)회\))?$' matches = re.match(pattern, cell[1].text.strip().decode('string_escape')) if not (matches is None): programName = matches.group(2).strip() if matches.group(2) else ''