Update epg2xml.py

This commit is contained in:
wonipapa 2018-02-10 14:08:44 +09:00 committed by GitHub
parent 4f0efebf23
commit 94c9ec2c1c
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: