Update epg2xml.py

This commit is contained in:
wonipapa 2017-03-09 11:24:26 +09:00 committed by GitHub
parent 09e7323dad
commit 2f55b408e3

View File

@ -16,7 +16,7 @@ import argparse
reload(sys) reload(sys)
sys.setdefaultencoding('utf-8') sys.setdefaultencoding('utf-8')
__version__ = '1.1.0' __version__ = '1.1.1'
# Set My Configuration # Set My Configuration
default_icon_url = '' # TV channel icon url (ex : http://www.example.com/Channels) default_icon_url = '' # TV channel icon url (ex : http://www.example.com/Channels)
@ -307,7 +307,10 @@ def GetEPGFromSK(ChannelInfo):
desc = '' desc = ''
actors = '' actors = ''
producers = '' producers = ''
category = program['mainGenreName'] if not (program['mainGenreName'] is None) :
category = program['mainGenreName']
else:
category = ''
rating = int(program['ratingCd']) if program['programName'] else 0 rating = int(program['ratingCd']) if program['programName'] else 0
desc = '' desc = ''
if program['synopsis'] : desc = program['synopsis'] if program['synopsis'] : desc = program['synopsis']