2016-02-13, 20:30
Hi Jamontes,
till this morning "Radio en directo" is not working, i can't see it in the menu. I think the web page www.rtve.es/radio/podcast has changed. I've made some changes to rne_api.py and now is working, here are the modifications:
def get_create_index():
"""This function gets the the first level index menu."""
main_url = root_url + '/tsacdop/oidar/'[::-1]
menu_patterns = (
( 'program_list', '<a href="([^"]*?)" title="(Listado de programas)"><span>'),
)
buffer_url = l.carga_web(main_url)
menu_entries = get_two_level_menu(buffer_url)
for action, pattern in menu_patterns:
url, title = l.find_first(buffer_url, pattern) or ('', '')
if url:
menu_item = {
'action' : action,
'title' : get_clean_title(title),
'args' : url,
}
menu_entries.append(menu_item)
menu_item = {
'action' : 'menu_direct',
'title' : 'Radio en directo',
'args' : '',
}
menu_entries.append(menu_item)
return menu_entries
Now i can hear radio3.
Thanks.
till this morning "Radio en directo" is not working, i can't see it in the menu. I think the web page www.rtve.es/radio/podcast has changed. I've made some changes to rne_api.py and now is working, here are the modifications:
def get_create_index():
"""This function gets the the first level index menu."""
main_url = root_url + '/tsacdop/oidar/'[::-1]
menu_patterns = (
( 'program_list', '<a href="([^"]*?)" title="(Listado de programas)"><span>'),
)
buffer_url = l.carga_web(main_url)
menu_entries = get_two_level_menu(buffer_url)
for action, pattern in menu_patterns:
url, title = l.find_first(buffer_url, pattern) or ('', '')
if url:
menu_item = {
'action' : action,
'title' : get_clean_title(title),
'args' : url,
}
menu_entries.append(menu_item)
menu_item = {
'action' : 'menu_direct',
'title' : 'Radio en directo',
'args' : '',
}
menu_entries.append(menu_item)
return menu_entries
Now i can hear radio3.
Thanks.