default.py 文件源码

python
阅读 24 收藏 0 点赞 0 评论 0

项目:catchup4kodi 作者: catchup4kodi 项目源码 文件源码
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')
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号