default.py 文件源码

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

项目:catchup4kodi 作者: catchup4kodi 项目源码 文件源码
def GetRTE_CATEGORIES_LINKS_AZ(url):    
     html=OPEN_URL(url)
     select=['A']
     returned=['http://www.rte.ie/player/gb/a-z/a/']
     match=re.compile('<td class=""><a href="(.+?)">(.+?)</a></td>').findall(html)
     for URL , TITLE in match:
         select.append(TITLE)
         returned.append('http://www.rte.ie'+URL)

     link=OPEN_URL(returned[xbmcgui.Dialog().select('Please Select', select)])
     LINKS=link.split('thumbnail-module')
     for p in LINKS:
         try:
             id=re.compile('href=".+?/show/(.+?)/"').findall(p)[0]
             name=re.compile('img alt="(.+?)"').findall(p)[0]
             iconimage=re.compile('src="(.+?)"').findall(p)[0]
             NAME='[COLOR white]%s[/COLOR]'%name
             id=id.split('/')[1]

             addDir(NAME,'http://www.rte.ie/player/gb/show/'+id,7,iconimage,'')
         except:pass
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号