Merge pull request #82 from wonipapa/devel

Devel
This commit is contained in:
wonipapa 2018-02-10 14:14:06 +09:00 committed by GitHub
commit 8037e053d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -392,7 +392,6 @@ def GetEPGFromSKB(ChannelInfo):
data = re.sub(pattern, partial(replacement, tag='span'), data)
strainer = SoupStrainer('div', {'id':'dawn'})
soup = BeautifulSoup(data, htmlparser, parse_only=strainer, from_encoding='utf-8')
soup = soup.prettify()
html = soup.find_all('li') if soup.find_all('li') else ''
if(html):
for row in html:
@ -403,7 +402,6 @@ def GetEPGFromSKB(ChannelInfo):
startTime = datetime.datetime.strptime(startTime, '%Y-%m-%d %H:%M')
startTime = startTime.strftime('%Y%m%d%H%M%S')
cell = row.find('span', {'class':'title'})
print(cell)
if(cell):
cell = cell.text.decode('string_escape').strip()
pattern = "^(.*?)(\(([\d,]+)회\))?(<(.*)>)?(\((재)\))?$"