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
评论列表
文章目录