From bae87bba87420f58f80450548d8ee7570a69340d Mon Sep 17 00:00:00 2001 From: wonipapa Date: Tue, 22 Aug 2017 11:03:47 +0900 Subject: [PATCH] =?UTF-8?q?SKB=20=ED=95=A8=EC=88=98=20=EB=B2=84=EA=B7=B8?= =?UTF-8?q?=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- epg2xml.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/epg2xml.py b/epg2xml.py index 91d96a6..a3afa0c 100644 --- a/epg2xml.py +++ b/epg2xml.py @@ -121,8 +121,8 @@ def getEpg(): GetEPGFromSK(ChannelInfo) elif ChannelSource == 'SKB': GetEPGFromSKB(ChannelInfo) - elif ChannelSource == 'SKY': - GetEPGFromSKY(ChannelInfo) + #elif ChannelSource == 'SKY': + # GetEPGFromSKY(ChannelInfo) elif ChannelSource == 'NAVER': GetEPGFromNaver(ChannelInfo) elif ChannelSource == 'ISCS': @@ -371,7 +371,7 @@ def GetEPGFromSKB(ChannelInfo): startTime = str(day) + ' ' + row.find('span', {'class':'time'}).text startTime = datetime.datetime.strptime(startTime, '%Y-%m-%d %H:%M') startTime = startTime.strftime('%Y%m%d%H%M%S') - row.find('span', {'class':'fullHD'}).decompose() + row.find('span', {'class':['fullHD', 'UHD']}).decompose() cell = row.find('span', {'class':None}).text.decode('string_escape').strip() pattern = "^(.*?)(\(([\d,]+)회\))?(<(.*)>)?(\((재)\))?$" matches = re.match(pattern, cell)