SKB 함수 버그 수정
This commit is contained in:
parent
5bb93a0d52
commit
bae87bba87
@ -121,8 +121,8 @@ def getEpg():
|
|||||||
GetEPGFromSK(ChannelInfo)
|
GetEPGFromSK(ChannelInfo)
|
||||||
elif ChannelSource == 'SKB':
|
elif ChannelSource == 'SKB':
|
||||||
GetEPGFromSKB(ChannelInfo)
|
GetEPGFromSKB(ChannelInfo)
|
||||||
elif ChannelSource == 'SKY':
|
#elif ChannelSource == 'SKY':
|
||||||
GetEPGFromSKY(ChannelInfo)
|
# GetEPGFromSKY(ChannelInfo)
|
||||||
elif ChannelSource == 'NAVER':
|
elif ChannelSource == 'NAVER':
|
||||||
GetEPGFromNaver(ChannelInfo)
|
GetEPGFromNaver(ChannelInfo)
|
||||||
elif ChannelSource == 'ISCS':
|
elif ChannelSource == 'ISCS':
|
||||||
@ -371,7 +371,7 @@ def GetEPGFromSKB(ChannelInfo):
|
|||||||
startTime = str(day) + ' ' + row.find('span', {'class':'time'}).text
|
startTime = str(day) + ' ' + row.find('span', {'class':'time'}).text
|
||||||
startTime = datetime.datetime.strptime(startTime, '%Y-%m-%d %H:%M')
|
startTime = datetime.datetime.strptime(startTime, '%Y-%m-%d %H:%M')
|
||||||
startTime = startTime.strftime('%Y%m%d%H%M%S')
|
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()
|
cell = row.find('span', {'class':None}).text.decode('string_escape').strip()
|
||||||
pattern = "^(.*?)(\(([\d,]+)회\))?(<(.*)>)?(\((재)\))?$"
|
pattern = "^(.*?)(\(([\d,]+)회\))?(<(.*)>)?(\((재)\))?$"
|
||||||
matches = re.match(pattern, cell)
|
matches = re.match(pattern, cell)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user