def filmon_epg(url,group):
url1='http://www.filmon.com/tvguide/'
html = net.http_GET(url1).content
link1 = html.encode('ascii', 'ignore')
link=str(link1).replace('\n','')
match=re.compile('bottom">(.+?)</h3>.+?href="(.+?)" > <img src="(.+?)".+?.+?div class="title">.+?</div>.+?h4>(.+?)/h4>.+?"description">(.+?)/div>').findall(link)
for name, url1, iconimage, showname, description in match:
cleandesc=str(description).replace('",','').replace(' ','').replace('<a class="read-more" href="/tvguide/','').replace('">Read more... →</a>','').replace('\xc3','').replace('\xa2','').replace('\xe2','').replace('\x82','').replace('\xac','').replace('\x84','').replace('\xa2s','').replace('\xc2','').replace('\x9d','').replace('<','')
showname = str(showname).replace('<','')
description = '[B]%s [/B]\n\n%s' % (showname,cleandesc)
url = 'http://www.filmon.com'+str(url1)
addDir(name,url,2,iconimage,description,'TV Guide')
xbmcplugin.addSortMethod(int(sys.argv[1]), xbmcplugin.SORT_METHOD_VIDEO_TITLE)
setView('movies', 'epg')
评论列表
文章目录