def GetContent(url):
CHANNEL = url
xunity='http://vschedules.uktv.co.uk/mobile/v2/most_popular?channel=%s&carousel_limit=100&platform=ios&app_ver=4.1.0' % CHANNEL
response=OPEN_URL(xunity)
link=json.loads(response)
#data=link['brands']
for field in link:
name= field['brand_name'].encode("utf-8")
iconimage= field['brand_image'].encode("utf-8")
channel=field['channel'].encode("utf-8")
try:desc=field['teaser_text'].encode("utf-8")
except:desc=''
brand_id=field['brand_id']
if CHANNEL in channel:
addDir(name.strip(),str(brand_id),2,iconimage,desc)
xbmcplugin.addSortMethod(int(sys.argv[1]), xbmcplugin.SORT_METHOD_VIDEO_TITLE)
setView('movies', 'default')
评论列表
文章目录