default.py 文件源码

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

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


问题


面经


文章

微信
公众号

扫码关注公众号