def MyRecordings(url,group):
net.set_cookies(cookie_jar)
url='http://www.filmon.com/my/recordings'
html = net.http_GET(url).content
link = html.encode('ascii', 'ignore')
match=re.compile('"stream_url":"(.+?),"stream_name":"(.+?)","id":".+?","title":"(.+?)","description":"(.+?)","channel_id":"(.+?)"').findall(link)
for a, playPath, name, description, channel in match:
url1=str(a).replace('\/','/')
url2=str(a).replace('\/','/').replace('"','')
regex = re.compile('rtmp://(.+?)/(.+?)/(.+?)/(.+?)/(.+?)/(.+?)/(.+?)"')
match1 = regex.search(url1)
try:
app = '%s/%s/%s/%s/%s/%s' %(match1.group(2), match1.group(3),match1.group(4),match1.group(5),match1.group(6),match1.group(7))
except:
app=''
tcUrl=str(url2)
iconimage='https://static.filmon.com/couch/channels/%s/big_logo.png' % str(channel)
swfUrl= 'http://www.filmon.com/tv/modules/FilmOnTV/files/flashapp/filmon/FilmonPlayer.swf'
pageUrl = 'http://www.filmon.com/my/recordings'
url= str(url2)+'/'+str(playPath)+' playpath='+str(playPath)+' app='+str(app)+' swfUrl='+str(swfUrl)+' tcUrl='+str(tcUrl)+' pageurl='+str(pageUrl)
xbmcplugin.addSortMethod(int(sys.argv[1]), xbmcplugin.SORT_METHOD_VIDEO_TITLE)
addLink(name,url,iconimage,playPath,app,pageUrl,swfUrl,tcUrl,description)
setView('movies', 'epg')
评论列表
文章目录